fix: handle edge cases during procfile removal

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-08-30 13:41:15 -04:00
1 parent 8f671b43ae
commit e6f2ee6499
1 file changed
+5 -1
+5 -1
View File
@@ -12,7 +12,11 @@ trigger-ps-procfile-remove() {
PROCFILE_PATH="$DOKKU_LIB_ROOT/data/ps/$APP/Procfile.extracted" PROCFILE_PATH="$DOKKU_LIB_ROOT/data/ps/$APP/Procfile.extracted"
fi fi
rm "$PROCFILE_PATH" if [[ ! -f "$PROCFILE_PATH" ]]; then
return
fi
rm -f "$PROCFILE_PATH" 2>/dev/null
} }
trigger-ps-procfile-remove "$@" trigger-ps-procfile-remove "$@"