Prueba
This commit is contained in:
@@ -27,7 +27,7 @@ jobs:
|
||||
TARGET_APP=$(awk -v path="$CURRENT_PATH" '
|
||||
/^\[/ { gsub(/[\[\]]/, "", $0); current_box=$0; next }
|
||||
$0 ~ "^APP_PATH="path"$" { print current_box; exit }
|
||||
' /home/deploy/apps.conf)
|
||||
' /etc/apps.conf)
|
||||
|
||||
if [ -z "$TARGET_APP" ]; then
|
||||
echo "ERROR: No se encontró ninguna aplicación en apps.conf que coincida con la ruta $CURRENT_PATH"
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
$0=="["app"]" { found=1; next }
|
||||
/^\[/ && found { exit }
|
||||
found && /^NODE=/ { split($0, a, "="); print a[2]; exit }
|
||||
' /home/deploy/apps.conf)
|
||||
' /etc/apps.conf)
|
||||
|
||||
MAJOR_VERSION=$(echo "$VERSION" | tr -d '[:space:]' | grep -oE '[0-9]+' | head -n1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user