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
|
if [ -z "$1" ]; then
|
||||||
echo "Usage: $0 <image> [-s] [-o <output_file>]"
|
echo "Usage: `basename $0` <image> [-s] [-o <output_file>]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -ne 1 ]; then
|
||||||
echo "Usage: $0 <input_file>"
|
echo "Usage: `basename $0` <input_file>"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
show_help() {
|
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 "Options:"
|
||||||
echo " --input|-i Specify the input video file (required)."
|
echo " --input|-i Specify the input video file (required)."
|
||||||
echo " --crop|-c Specify the width:height for video cropping."
|
echo " --crop|-c Specify the width:height for video cropping."
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ while getopts "f:c:" opt; do
|
|||||||
command="$OPTARG"
|
command="$OPTARG"
|
||||||
;;
|
;;
|
||||||
\?)
|
\?)
|
||||||
echo "Usage: $0 -f <queue_file> -c <command>"
|
echo "Usage: `basename $0` -f <queue_file> -c <command>"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -22,7 +22,7 @@ done
|
|||||||
|
|
||||||
# Check if both parameters are provided
|
# Check if both parameters are provided
|
||||||
if [ -z "$queue_file" ] || [ -z "$command" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
# TODO, warning! This script is horrible and insecure with background jobs
|
# TODO, warning! This script is horrible and insecure with background jobs
|
||||||
|
|
||||||
show_help() {
|
show_help() {
|
||||||
# echo "Usage: $0 [--no-abort-on-found] [--parallel] [--custom-grep-search|-c <string>]"
|
# echo "Usage: `basename $0` [--no-abort-on-found] [--parallel] [--custom-grep-search|-c <string>]"
|
||||||
echo "Usage: $0 [--custom-grep-search|-c <string>]"
|
echo "Usage: `basename $0` [--custom-grep-search|-c <string>]"
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
# echo " --no-abort-on-found (optional) The script will not update each gallery download until it finds an already downloaded file."
|
# 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."
|
# 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
|
#!/bin/bash
|
||||||
|
|
||||||
show_help() {
|
show_help() {
|
||||||
echo "Usage: $0 [--files|-f files]"
|
echo "Usage: `basename $0` [--files|-f files]"
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " --help | -h (Optional) Display help information on how to use this script"
|
echo " --help | -h (Optional) Display help information on how to use this script"
|
||||||
echo " --deployments-dir | -d (Required) Specify the Wildfly's deployment directory"
|
echo " --deployments-dir | -d (Required) Specify the Wildfly's deployment directory"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
show_help() {
|
show_help() {
|
||||||
echo "Usage: $0 [--files|-f files]"
|
echo "Usage: `basename $0` [--files|-f files]"
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " --help | -h (Optional) Display help information on how to use this script"
|
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 (,)"
|
echo " --files | -f (Optional) Specify the files to explode, separation by comma (,)"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
show_help() {
|
show_help() {
|
||||||
echo "Usage: $0 [--grep-str|-g string]"
|
echo "Usage: `basename $0` [--grep-str|-g string]"
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " --help | -h (Optional) Display help information on how to use this script"
|
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"
|
echo " --grep-str <string> | -g <string> (Optional) Specify a customized string for grepping the process description"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
show_help() {
|
show_help() {
|
||||||
echo "Usage: $0 [--files|-f files]"
|
echo "Usage: `basename $0` [--files|-f files]"
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " --help | -h (Optional) Display help information on how to use this script"
|
echo " --help | -h (Optional) Display help information on how to use this script"
|
||||||
echo " --version | --version (Required) Specify the GP version to install"
|
echo " --version | --version (Required) Specify the GP version to install"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
printf "\n"
|
printf "\n"
|
||||||
|
|
||||||
show_help() {
|
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 "Options:"
|
||||||
echo " --help | -h (Optional) Display help information on how to use this script"
|
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 (,)"
|
echo " --commit-hashes | -c (Required) Specify the commit hashes, separation by comma (,)"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
show_help() {
|
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 "Options:"
|
||||||
echo " --mods-names|-m (required) Specify mods names list, separation by comma (,)."
|
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"
|
echo " Run \"--use-ids true\" to use ids instead of names for mod installations"
|
||||||
|
|||||||
Reference in New Issue
Block a user