Scripts will display only filename instead of full path in echo messages
This commit is contained in:
@@ -8,7 +8,7 @@ check_command_availability() {
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <image> [-s] [-o <output_file>]"
|
||||
echo "Usage: `basename $0` <image> [-s] [-o <output_file>]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: $0 <input_file>"
|
||||
echo "Usage: `basename $0` <input_file>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
show_help() {
|
||||
echo "Usage: $0 [--input|-i input_file] [--crop|-c width:height] [--trim-start start] [--trim-end end] [--crf crf_value] [--fps new_fps] [--scale640] [--merge-audio] [--remove-audio] --output|-o output_file"
|
||||
echo "Usage: `basename $0` [--input|-i input_file] [--crop|-c width:height] [--trim-start start] [--trim-end end] [--crf crf_value] [--fps new_fps] [--scale640] [--merge-audio] [--remove-audio] --output|-o output_file"
|
||||
echo "Options:"
|
||||
echo " --input|-i Specify the input video file (required)."
|
||||
echo " --crop|-c Specify the width:height for video cropping."
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
# TODO, warning! This script is horrible and insecure with background jobs
|
||||
|
||||
show_help() {
|
||||
# echo "Usage: $0 [--no-abort-on-found] [--parallel] [--custom-grep-search|-c <string>]"
|
||||
echo "Usage: $0 [--custom-grep-search|-c <string>]"
|
||||
# echo "Usage: `basename $0` [--no-abort-on-found] [--parallel] [--custom-grep-search|-c <string>]"
|
||||
echo "Usage: `basename $0` [--custom-grep-search|-c <string>]"
|
||||
echo "Options:"
|
||||
# echo " --no-abort-on-found (optional) The script will not update each gallery download until it finds an already downloaded file."
|
||||
# echo " --parallel-jobs (optional) The script will update each gallery download in parallel, with multiple background jobs running on your operating system."
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
show_help() {
|
||||
echo "Usage: $0 [--files|-f files]"
|
||||
echo "Usage: `basename $0` [--files|-f files]"
|
||||
echo "Options:"
|
||||
echo " --help | -h (Optional) Display help information on how to use this script"
|
||||
echo " --deployments-dir | -d (Required) Specify the Wildfly's deployment directory"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
show_help() {
|
||||
echo "Usage: $0 [--files|-f files]"
|
||||
echo "Usage: `basename $0` [--files|-f files]"
|
||||
echo "Options:"
|
||||
echo " --help | -h (Optional) Display help information on how to use this script"
|
||||
echo " --files | -f (Optional) Specify the files to explode, separation by comma (,)"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
show_help() {
|
||||
echo "Usage: $0 [--grep-str|-g string]"
|
||||
echo "Usage: `basename $0` [--grep-str|-g string]"
|
||||
echo "Options:"
|
||||
echo " --help | -h (Optional) Display help information on how to use this script"
|
||||
echo " --grep-str <string> | -g <string> (Optional) Specify a customized string for grepping the process description"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
show_help() {
|
||||
echo "Usage: $0 [--files|-f files]"
|
||||
echo "Usage: `basename $0` [--files|-f files]"
|
||||
echo "Options:"
|
||||
echo " --help | -h (Optional) Display help information on how to use this script"
|
||||
echo " --version | --version (Required) Specify the GP version to install"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
printf "\n"
|
||||
|
||||
show_help() {
|
||||
echo "Usage: $0 [--commit-hashes|-c commit hashes] [--deployments-path|-d deployments path]"
|
||||
echo "Usage: `basename $0` [--commit-hashes|-c commit hashes] [--deployments-path|-d deployments path]"
|
||||
echo "Options:"
|
||||
echo " --help | -h (Optional) Display help information on how to use this script"
|
||||
echo " --commit-hashes | -c (Required) Specify the commit hashes, separation by comma (,)"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
show_help() {
|
||||
echo "Usage: $0 [--mods-names|-m mods] [--include-default-mods|-d true] [--interactive-mode|-i true]"
|
||||
echo "Usage: `basename $0` [--mods-names|-m mods] [--include-default-mods|-d true] [--interactive-mode|-i true]"
|
||||
echo "Options:"
|
||||
echo " --mods-names|-m (required) Specify mods names list, separation by comma (,)."
|
||||
echo " Run \"--use-ids true\" to use ids instead of names for mod installations"
|
||||
|
||||
Reference in New Issue
Block a user