I am working on a existing build script where the script file contains these (Some part )
As part of the build process , i need to run this script file .
#!/bin/sh
if [ -z $1 ]; then
help
elif [ $1 == 'test' ]; then
test
Could anybody please let me know what does this mean and form where does the value will be fed from ??
Actually this script says:
helpCheckInthen call functionCheckInAn example could be:
So if this script is named, i.e
test.shthe output of running it would be:sh test.shoutput:
Help called!!sh test.sh CheckInoutput:
CheckIn called!!Finally please note that in your logged-in user shell there can be built in scripts named
helpandCheckIn. In this case these scripts/commands will be called and there is no need for functions namedhelp/CheckInto be present.