Scripts will display only filename instead of full path in echo messages

This commit is contained in:
Matheus Albino
2024-06-26 15:45:39 -03:00
parent f35119599f
commit a0025ab1db
11 changed files with 13 additions and 13 deletions

View File

@@ -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