Change the exits to returns. Fix typo.
This commit is contained in:
@@ -33,14 +33,14 @@ if [[ ! -e ~/storage/shared ]]; then
|
||||
echo "~/storage/shared/ now exists. :)"
|
||||
else
|
||||
echo "ERROR: Something ain't right, Jim! Abort!" >&2
|
||||
exit 1
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
echo "Everything looks good already, pal."
|
||||
fi
|
||||
|
||||
|
||||
echo -e "\n`date` - Install & Updayte Crtical Software"
|
||||
echo -e "\n`date` - Install & Update Crtical Software"
|
||||
pkg install -y \
|
||||
openssh tsu vim htop git cronie man zip ncurses-utils which \
|
||||
nmap traceroute wget rsync \
|
||||
@@ -134,4 +134,4 @@ echo "*******"
|
||||
|
||||
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
||||
echo -e "\n`date` - Finished $PROG"
|
||||
exit 0
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user