💥 fix(install, update): use pnpm's -C instead of changing directory
This commit is contained in:
+2
-5
@@ -84,14 +84,11 @@ if [[ "$answer" == y ]] || [[ "$skip_prompts" ]]; then
|
|||||||
cp -rf $repo_directory/config/$dir "$dest" # copy
|
cp -rf $repo_directory/config/$dir "$dest" # copy
|
||||||
done
|
done
|
||||||
|
|
||||||
prev_wd=`pwd`
|
|
||||||
cd "$repo_directory"
|
|
||||||
Send_log "Updating dependencies"
|
Send_log "Updating dependencies"
|
||||||
pnpm i && pnpm update
|
pnpm -C "$repo_directory" i && pnpm -C "$repo_directory" update
|
||||||
|
|
||||||
Send_log "Building colorshell"
|
Send_log "Building colorshell"
|
||||||
pnpm build:release
|
pnpm -C "$repo_directory" build:release
|
||||||
cd "$prev_wd"
|
|
||||||
|
|
||||||
Send_log "Installing colorshell"
|
Send_log "Installing colorshell"
|
||||||
# install shell
|
# install shell
|
||||||
|
|||||||
@@ -99,14 +99,11 @@ if [[ "$answer" == y ]] || [[ "$skip_prompts" ]]; then
|
|||||||
cp -rf $repo_directory/config/$dir "$dest" # copy
|
cp -rf $repo_directory/config/$dir "$dest" # copy
|
||||||
done
|
done
|
||||||
|
|
||||||
prev_wd=`pwd`
|
|
||||||
cd "$repo_directory"
|
|
||||||
Send_log "Updating dependencies"
|
Send_log "Updating dependencies"
|
||||||
pnpm i && pnpm update
|
pnpm -C "$repo_directory" i && pnpm -C "$repo_directory" update
|
||||||
|
|
||||||
Send_log "Building colorshell"
|
Send_log "Building colorshell"
|
||||||
pnpm build:release
|
pnpm -C "$repo_directory" build:release
|
||||||
cd "$prev_wd"
|
|
||||||
|
|
||||||
Send_log "Installing colorshell"
|
Send_log "Installing colorshell"
|
||||||
# install shell
|
# install shell
|
||||||
|
|||||||
Reference in New Issue
Block a user