Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): use HOME_DIR under set -u in install-cli script

Richie McIlroya1bbbd6a38bd
diff --git a/apps/web/app/install-cli.sh/route.ts b/apps/web/app/install-cli.sh/route.ts
index c7564ef4b..bfef35a9a 100644
--- a/apps/web/app/install-cli.sh/route.ts
+++ b/apps/web/app/install-cli.sh/route.ts
@@ -12,7 +12,7 @@ CLI_INSTALL_DIR_OVERRIDE="${capCliInstallDirParameter}"
HOME_DIR="${homeParameter}"
if [ -z "$APP_PATH" ]; then
- for candidate in "/Applications/Cap.app" "$HOME/Applications/Cap.app"; do
+ for candidate in "/Applications/Cap.app" "$HOME_DIR/Applications/Cap.app"; do
if [ -d "$candidate" ]; then
APP_PATH="$candidate"
break