Remove redundancy in 2000/tomx/try.sh
After doing make all || exit 1 it checked for the existence of tomx and it being executable but that should not be necessary after compilation.
This commit is contained in:
1 parent
9c94c7df73
commit
fed6b32f0a
1 file changed
-5
@@ -15,11 +15,6 @@ make CC="$CC" all >/dev/null || exit 1
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
if [[ ! -f "tomx" || ! -e "tomx" ]]; then
|
||||
echo "Compiling tomx.c:" 1>&2
|
||||
make all || exit 1
|
||||
fi
|
||||
|
||||
echo "Running tomx:" 1>&2
|
||||
echo "$ ./tomx" 1>&2
|
||||
./tomx
|
||||
|
||||
Reference in new issue
Block a user