]> pd.if.org Git - zpackage/commitdiff
prepend paths given by option
authorNathan Wagner <nw@hydaspes.if.org>
Fri, 3 Aug 2018 23:41:45 +0000 (23:41 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Fri, 3 Aug 2018 23:41:45 +0000 (23:41 +0000)
zpm

diff --git a/zpm b/zpm
index 633eabf9cf553df8b037203b406e7e9c3ecc0c26..06599acaf4123844aaaea5a6cc9ded32086cd1d5 100755 (executable)
--- a/zpm
+++ b/zpm
@@ -3,7 +3,7 @@
 # parse command line options
 while getopts P: opt; do
        case $opt in
-               P) PATH=$PATH:$OPTARG ;;
+               P) PATH=$OPTARG:$PATH ;;
                *) printf "zpm unknown option '%s'\n" "$opt"; exit 1 ;;
        esac
 done