aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-03-06 18:10:24 -0500
committerDave Gauer <dave@ratfactor.com>2021-03-06 18:10:24 -0500
commit71dd4ff1ae20dc54637198f9fa87c0fc27b33f55 (patch)
tree95693b2cd75483beb9f7d51036dfa94e4cb8fa0e
parent7573ea4843648df111cebdca799ee721d8455217 (diff)
downloadziglings-71dd4ff1ae20dc54637198f9fa87c0fc27b33f55.tar.gz
ziglings-71dd4ff1ae20dc54637198f9fa87c0fc27b33f55.tar.bz2
ziglings-71dd4ff1ae20dc54637198f9fa87c0fc27b33f55.tar.xz
ziglings-71dd4ff1ae20dc54637198f9fa87c0fc27b33f55.zip
POSIX shell fixes
-rwxr-xr-xpatches/eowyn.sh5
-rwxr-xr-xpatches/gollum.sh4
2 files changed, 4 insertions, 5 deletions
diff --git a/patches/eowyn.sh b/patches/eowyn.sh
index f9e7479..f450c0e 100755
--- a/patches/eowyn.sh
+++ b/patches/eowyn.sh
@@ -28,15 +28,14 @@ do
patch_name="patches/$true_name.patch"
- if [[ -f $patch_name ]]
+ if [ -f $patch_name ]
then
# Apply the bandages to the wounds, grow new limbs, let
# new life spring into the broken bodies of the fallen.
echo Healing $true_name...
patch --output=healed/$true_name.zig $broken $patch_name
else
- echo Cannot heal $true_name. Making empty patch.
- echo > $patch_name
+ echo Cannot heal $true_name. No patch found.
fi
done
diff --git a/patches/gollum.sh b/patches/gollum.sh
index 6531044..b693083 100755
--- a/patches/gollum.sh
+++ b/patches/gollum.sh
@@ -14,8 +14,8 @@ p=patches/$f.patch
printf "\tf: '$f'\n\tb: '$b'\n\ta: '$a'\n"
-if [[ ! -f $b ]]; then echo "We hates it!"; exit 1; fi
-if [[ ! -a $a ]]; then echo "Where is it? Where is the answer, precious?"; exit; fi
+if [ ! -f $b ]; then echo "We hates it!"; exit 1; fi
+if [ ! -f $a ]; then echo "Where is it? Where is the answer, precious?"; exit; fi
echo Hisssss!