From f1e91f8657f1c92bf601be82aad2d73d539aa701 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Sun, 26 Oct 2025 16:33:46 -0300 Subject: [PATCH] :boom: fix(install, update): use pnpm's `-C` instead of changing directory --- install.sh | 7 ++----- update.sh | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index 37de8e6..a04fa4e 100755 --- a/install.sh +++ b/install.sh @@ -84,14 +84,11 @@ if [[ "$answer" == y ]] || [[ "$skip_prompts" ]]; then cp -rf $repo_directory/config/$dir "$dest" # copy done - prev_wd=`pwd` - cd "$repo_directory" Send_log "Updating dependencies" - pnpm i && pnpm update + pnpm -C "$repo_directory" i && pnpm -C "$repo_directory" update Send_log "Building colorshell" - pnpm build:release - cd "$prev_wd" + pnpm -C "$repo_directory" build:release Send_log "Installing colorshell" # install shell diff --git a/update.sh b/update.sh index 9abe249..c613bfe 100755 --- a/update.sh +++ b/update.sh @@ -99,14 +99,11 @@ if [[ "$answer" == y ]] || [[ "$skip_prompts" ]]; then cp -rf $repo_directory/config/$dir "$dest" # copy done - prev_wd=`pwd` - cd "$repo_directory" Send_log "Updating dependencies" - pnpm i && pnpm update + pnpm -C "$repo_directory" i && pnpm -C "$repo_directory" update Send_log "Building colorshell" - pnpm build:release - cd "$prev_wd" + pnpm -C "$repo_directory" build:release Send_log "Installing colorshell" # install shell