diff options
| author | F3RR3T <github@st33v.com> | 2014-09-07 06:43:50 +1000 |
|---|---|---|
| committer | F3RR3T <github@st33v.com> | 2014-09-07 06:43:50 +1000 |
| commit | 8f37fd66cd49e6c5b0677d0b7d325a2bbc13d33e (patch) | |
| tree | b39c4e4bd9447e35e809f3a396952cb7808db5f6 | |
| parent | e779a2afe559d67bef12bb57f1a4ce0de06b9c81 (diff) | |
Now exits as soon as IP lookup times out. Better luck next cron time.
| -rwxr-xr-x | test.sh | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test.sh b/test.sh deleted file mode 100755 index 07e7ecf..0000000 --- a/test.sh +++ /dev/null @@ -1,30 +0,0 @@ -#! /bin/bash - -# SJP 5 September 2014 -# just testing how to set if conditions - -x=$1 - -echo 'square bracket' -#[ $x == 1 ] && echo 'x = 1' || echo 'x is not 1' -[ $x == 1 ] && ("$x"=2; echo 'adding 1') || echo 'x is not 1' - -echo "x is now $x" - -#wrong -# [ $y ] && echo "y is true" || echo "y is false" -#echo -e "y is $y\n" - -#y=F - -#[ $y ] && echo "y is true" || echo "y is false" -#echo "y is $y" - -echo -e "\n multi line if then test" - -if (test "$x" -lt $2) then - echo "$x is less than $2" -else - echo "$x is not less than $2" -fi - |
