From cc9fcc3e5b9e7479c0b46107ad81326931c14678 Mon Sep 17 00:00:00 2001 From: Frank Halasz Date: Mon, 13 May 2024 16:31:58 -0700 Subject: [PATCH] Fix Issue 1711 - fix two typos in medley_utils.sh $%2 -> $2 --- scripts/medley/medley.command | 4 ++-- scripts/medley/medley_utils.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/medley/medley.command b/scripts/medley/medley.command index 041877d1..c1b19795 100755 --- a/scripts/medley/medley.command +++ b/scripts/medley/medley.command @@ -197,7 +197,7 @@ the value begins with a \"-\", which is not allowed." check_file_writeable_or_creatable() { local_msg_core="\"$2\" given as the value of the \"$1\" flag" local_err_msg="" - if [ -e "$%2" ] + if [ -e "$2" ] then if [ ! -f "$2" ] then @@ -228,7 +228,7 @@ Exiting" check_dir_writeable_or_creatable() { local_msg_core="\"$2\" given as the value of the \"$1\" flag" local_err_msg="" - if [ -e "$%2" ] + if [ -e "$2" ] then if [ ! -d "$2" ] then diff --git a/scripts/medley/medley_utils.sh b/scripts/medley/medley_utils.sh index a623e373..9f10a65f 100644 --- a/scripts/medley/medley_utils.sh +++ b/scripts/medley/medley_utils.sh @@ -51,7 +51,7 @@ the value begins with a \"-\", which is not allowed." check_file_writeable_or_creatable() { local_msg_core="\"$2\" given as the value of the \"$1\" flag" local_err_msg="" - if [ -e "$%2" ] + if [ -e "$2" ] then if [ ! -f "$2" ] then @@ -82,7 +82,7 @@ Exiting" check_dir_writeable_or_creatable() { local_msg_core="\"$2\" given as the value of the \"$1\" flag" local_err_msg="" - if [ -e "$%2" ] + if [ -e "$2" ] then if [ ! -d "$2" ] then