marcusshepp
6/19/2016 - 6:22 PM

checking if any args match a string when running a script

checking if any args match a string when running a script

for i in "$@" ; do # for all args
	if [[ $i == "boot" ]]; then # if arg equals this string
	  # do this
		bash ~/projects/dollars/as/django/bootserver.sh
		break
	fi
done