diff options
-rwxr-xr-x | include/pkglist | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/pkglist b/include/pkglist index 305d248..eb705c8 100755 --- a/include/pkglist +++ b/include/pkglist @@ -1,6 +1,12 @@ #!/usr/bin/env zsh ## on the PKG_HOST: list available packages ## used by pkg remote-update +# the PKG_PATH (package root path) is given as first argument ($1) + +if [[ ! -d $1 ]] { + echo "$0: package root directory '$1' does not exist!" >&2 + exit 1 +} # change into package root directory (first argument) cd $1 |