diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-02-14 20:26:57 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-02-14 20:26:57 -0500 |
commit | 44ccf4a0eb5bc37604f68ead194e5fb0dc637b98 (patch) | |
tree | e197971c420902e692433a3b15de54369458cdb8 /patches/eowyn.sh | |
parent | e4a5716c71f4cdf9837c8e059aa43080748f4650 (diff) | |
download | ziglings-44ccf4a0eb5bc37604f68ead194e5fb0dc637b98.tar.gz ziglings-44ccf4a0eb5bc37604f68ead194e5fb0dc637b98.tar.bz2 ziglings-44ccf4a0eb5bc37604f68ead194e5fb0dc637b98.tar.xz ziglings-44ccf4a0eb5bc37604f68ead194e5fb0dc637b98.zip |
Patches to patches to clean up patches
Diffstat (limited to 'patches/eowyn.sh')
-rwxr-xr-x | patches/eowyn.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/patches/eowyn.sh b/patches/eowyn.sh index 53b87d2..5a802f6 100755 --- a/patches/eowyn.sh +++ b/patches/eowyn.sh @@ -25,16 +25,18 @@ for broken in ../exercises/*.zig do # Remove the dir and extension, rendering the True Name. true_name=$(basename $broken .zig) + patch_name="patches/$true_name.patch" - if [[ -f $true_name.patch ]] + + 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 $true_name.patch + patch --output=healed/$true_name.zig $broken $patch_name else echo Cannot heal $true_name. Making empty patch. - echo > $true_name.patch + echo > $patch_name fi done |