diff options
Diffstat (limited to 'pbs-package-new')
-rwxr-xr-x | pbs-package-new | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pbs-package-new b/pbs-package-new index bd76f8a..a99fd30 100755 --- a/pbs-package-new +++ b/pbs-package-new @@ -1,6 +1,6 @@ #!/bin/bash -euE -. libremessages +. pbs-plumb-shlib cmd=${0##*/} usage() { @@ -19,7 +19,7 @@ main() { esac done shift $(($OPTIND - 1)) - if [[ $# > 0 ]]; then + if [[ $# != 1 ]]; then usage return 1 fi @@ -27,9 +27,11 @@ main() { local dest=$1 local package="${dest##*/}" + cdto_pbs-root git submodule add ./ "${dest}" cd "${dest}" git checkout --orphan "packages/${package}" + touch .pbs-package } main "$@" |