feat: Add function to show error message if path not specified

This commit is contained in:
zen0bit 2024-04-13 22:44:16 +02:00 committed by Martin Wimpress
parent 15e4726801
commit 9ff5f02d8f
1 changed files with 6 additions and 0 deletions

View File

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