From 0688bdf7e894c4e535daa3ece8caa1244c29c2cc Mon Sep 17 00:00:00 2001 From: taniman Date: Thu, 8 Nov 2018 21:44:19 -0400 Subject: [PATCH] Dash needs to be at first or last place in the regex else it does not work correctly --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index a10c206..2384c01 100644 --- a/update.sh +++ b/update.sh @@ -143,7 +143,7 @@ if [[ "$skipsetup" == "n" ]] || [[ "$skipsetup" == "N" ]]; then ### ask user for the name and path of each instance they wish to update ### for ((i=1; i<=$PTinstances; i++)); do read -p "What is the PM2 App name/ id or pid for instance $i? " name[$i] - chars="a-zA-Z0-9_-\/" + chars="a-zA-Z0-9_\/-" re="\/[$chars]+" execpath=$(pm2 info "${name[$i]}" | grep 'exec cwd'); if [[ $execpath =~ $re ]];