summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-02-14 11:19:35 -0800
committerGarrett D'Amore <garrett@damore.org>2018-02-14 11:19:35 -0800
commita938ebadced6e6e9a929eeac16a5db3717cf953e (patch)
tree0adb3a11276c257832079785905eb210616f514a
parentb604728cfb0be6adfed7c80fa7d14a0b6490c281 (diff)
downloadnng-a938ebadced6e6e9a929eeac16a5db3717cf953e.tar.gz
nng-a938ebadced6e6e9a929eeac16a5db3717cf953e.tar.bz2
nng-a938ebadced6e6e9a929eeac16a5db3717cf953e.zip
Use POSIX compliant shell syntax.
-rwxr-xr-x_adoc/build.sh10
1 files 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"