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