Skip to content

armgit / plane

Public Imported from GitHub
0

🔥🔥🔥 Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: escape slashes in environment variable values during update (#8081)

Krzysztof Dąbrowski6ba15545d9cf
diff --git a/deployments/cli/community/install.sh b/deployments/cli/community/install.sh
index e2e89814d3..c26fba22b8 100755
--- a/deployments/cli/community/install.sh
+++ b/deployments/cli/community/install.sh
@@ -141,6 +141,7 @@ function updateEnvFile() {
value=$(echo "$value" | sed 's/|/\\|/g')
sed -i '' "s|^$key=.*|$key=$value|g" "$file"
else
+ value=$(echo "$value" | sed 's/\//\\\//g')
sed -i "s/^$key=.*/$key=$value/g" "$file"
fi
fi