mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
POSIX shell fixes
This commit is contained in:
parent
35e99e625d
commit
363459de84
2 changed files with 4 additions and 5 deletions
|
@ -28,15 +28,14 @@ do
|
||||||
patch_name="patches/$true_name.patch"
|
patch_name="patches/$true_name.patch"
|
||||||
|
|
||||||
|
|
||||||
if [[ -f $patch_name ]]
|
if [ -f $patch_name ]
|
||||||
then
|
then
|
||||||
# Apply the bandages to the wounds, grow new limbs, let
|
# Apply the bandages to the wounds, grow new limbs, let
|
||||||
# new life spring into the broken bodies of the fallen.
|
# new life spring into the broken bodies of the fallen.
|
||||||
echo Healing $true_name...
|
echo Healing $true_name...
|
||||||
patch --output=healed/$true_name.zig $broken $patch_name
|
patch --output=healed/$true_name.zig $broken $patch_name
|
||||||
else
|
else
|
||||||
echo Cannot heal $true_name. Making empty patch.
|
echo Cannot heal $true_name. No patch found.
|
||||||
echo > $patch_name
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ p=patches/$f.patch
|
||||||
|
|
||||||
printf "\tf: '$f'\n\tb: '$b'\n\ta: '$a'\n"
|
printf "\tf: '$f'\n\tb: '$b'\n\ta: '$a'\n"
|
||||||
|
|
||||||
if [[ ! -f $b ]]; then echo "We hates it!"; exit 1; fi
|
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 $a ]; then echo "Where is it? Where is the answer, precious?"; exit; fi
|
||||||
|
|
||||||
echo Hisssss!
|
echo Hisssss!
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue