From a938ebadced6e6e9a929eeac16a5db3717cf953e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 14 Feb 2018 11:19:35 -0800 Subject: Use POSIX compliant shell syntax. --- _adoc/build.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_adoc/build.sh b/_adoc/build.sh index adfa7185..3fd6e21b 100755 --- a/_adoc/build.sh +++ b/_adoc/build.sh @@ -28,7 +28,7 @@ for f in $(find . -name '*.adoc'); do ;; esac while read line; do - if [[ "$line" == "---" ]] + if [ "$line" = "---" ] then if (( $infrontmatter != 0 )) then @@ -36,9 +36,9 @@ for f in $(find . -name '*.adoc'); do else infrontmatter=1 fi - elif [[ "$infrontmatter" != 0 ]] + elif (( $infrontmatter != 0 )) then - if [[ -z "$frontmater" ]] + if [ -z "$frontmater" ] then frontmatter="$line" else @@ -54,12 +54,12 @@ for f in $(find . -name '*.adoc'); do done < $input - if [[ -n "$indir" ]] && [[ ! -d "$outdir" ]] + if [ -n "$indir" ] && [ ! -d "$outdir" ] then mkdir -p $outdir fi - if [[ -n "$frontmatter" ]] + if [ -n "$frontmatter" ] then echo "---" echo "$frontmatter" -- cgit v1.2.3-70-g09d2