From 34f5817699651091024f3ac49996363eabcd15f4 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 18 May 2023 10:05:51 -0700 Subject: [PATCH] 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. --- 2001/anonymous/try.me.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2001/anonymous/try.me.sh b/2001/anonymous/try.me.sh index 1df9c1838..8d85c58e0 100755 --- a/2001/anonymous/try.me.sh +++ b/2001/anonymous/try.me.sh @@ -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