feat: Add function to show error message if path not specified
This commit is contained in:
parent
15e4726801
commit
9ff5f02d8f
6
quickget
6
quickget
|
@ -3662,6 +3662,12 @@ fi
|
||||||
|
|
||||||
LANGS=()
|
LANGS=()
|
||||||
|
|
||||||
|
os_path_error() {
|
||||||
|
echo "ERROR! You must specify path."
|
||||||
|
os_error
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
if [ -n "${1}" ]; then
|
if [ -n "${1}" ]; then
|
||||||
OS="${1,,}"
|
OS="${1,,}"
|
||||||
if [ "${OS}" == "list" ] || [ "${OS}" == "list_csv" ]; then
|
if [ "${OS}" == "list" ] || [ "${OS}" == "list_csv" ]; then
|
||||||
|
|
Loading…
Reference in New Issue