diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-18 10:18:17 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-18 10:18:17 -0400 |
commit | e42d401d0f379a6c6ec541eaf05682973abf4bf9 (patch) | |
tree | 967454b7783a04a07a221cc9686f29920012e770 /pbs-package-merge | |
parent | 02e65752e544754e029288f0b539661a7040fa76 (diff) |
add a shlib, use .pbs-root and .pbs-package to identify directories
Diffstat (limited to 'pbs-package-merge')
-rwxr-xr-x | pbs-package-merge | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/pbs-package-merge b/pbs-package-merge index f99484b..eca9d1b 100755 --- a/pbs-package-merge +++ b/pbs-package-merge @@ -1,6 +1,6 @@ #!/bin/bash -euE -. libremessages +. pbs-plumb-shlib cmd=${0##*/} usage() { @@ -27,12 +27,7 @@ main() { return 1 fi - if ! git rev-parse --git-dir &>/dev/null; then - error "Must be in a package (git) directory" - return 1 - fi - cd "$(git rev-parse --show-cdup)" - + cdto_pbs-package-root if [[ ! -r pbstrack ]]; then error "No pbstrack file found, don't know where to pull from" return 1 |