Scripts will display only filename instead of full path in echo messages
This commit is contained in:
@@ -14,7 +14,7 @@ while getopts "f:c:" opt; do
|
||||
command="$OPTARG"
|
||||
;;
|
||||
\?)
|
||||
echo "Usage: $0 -f <queue_file> -c <command>"
|
||||
echo "Usage: `basename $0` -f <queue_file> -c <command>"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -22,7 +22,7 @@ done
|
||||
|
||||
# Check if both parameters are provided
|
||||
if [ -z "$queue_file" ] || [ -z "$command" ]; then
|
||||
echo "Usage: $0 -f <queue_file> -c <command>"
|
||||
echo "Usage: `basename $0` -f <queue_file> -c <command>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user