Fix 2001/anonymous/try.me.sh

For some reason the check that exists has opposite meanings in macOS and
linux so instead of checking the status of make I check if the file
exists after a make clobber all.
This commit is contained in:
Cody Boone Ferguson committed 2023-05-18 10:05:51 -07:00
1 parent 81a55e043f
commit 34f5817699
1 file changed
+2 -2
+2 -2
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
make clobber >/dev/null 2>&1
make clobber all >/dev/null 2>&1
if [[ $(make anonymous.ten >/dev/null 2>&1) ]]; then
if [[ -f "anonymous.ten" ]]; then
make anonymous 2>/dev/null
echo "$ cp anonymous.ten anonymous.ten.bak" 1>&2