diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-02-18 01:05:06 -0600 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-02-18 01:05:06 -0600 |
commit | 0d12ced814d9dca93908038a495b1a06afb92af5 (patch) | |
tree | 8263d5768972632994405b89dc7b9ba2af6d0a4b /pass | |
parent | 02339729def6aa67522ae12f2ffa9e9cecfd459e (diff) |
build(pass): fix bug install script
Diffstat (limited to 'pass')
-rwxr-xr-x | pass/install.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pass/install.sh b/pass/install.sh index 8a8a054..f91caf4 100755 --- a/pass/install.sh +++ b/pass/install.sh @@ -16,11 +16,11 @@ if [ ! -d "$store" ]; then else printf "%s: Syncing password-store\n" "$0" - git remote update origin + git -C "$store" remote update origin - LOCAL=$(git rev-parse @) - REMOTE=$(git rev-parse '@{u}') - BASE=$(git merge-base @ '@{u}') + LOCAL=$(git -C "$store" rev-parse @) + REMOTE=$(git -C "$store" rev-parse '@{u}') + BASE=$(git -C "$store" merge-base @ '@{u}') if [ "$BASE" != "$REMOTE" ]; then git -C "$store" pull |