diff options
-rwxr-xr-x | stowpkg | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -84,7 +84,7 @@ stowpkg_usage () { } stowpkg_search () { - local package="$2" + local package="$1" if [ ! -z "$package" ]; then stowpkg_search | grep "$package$" @@ -94,7 +94,7 @@ stowpkg_search () { } stowpkg_install () { - local package="$2" + local package="$1" if [ -z "$package" ]; then stowpkg_usage @@ -171,7 +171,7 @@ stowpkg_install () { stowpkg_build $package $version } -function stowpkg_build () { +stowpkg_build () { local package="$1" local version="$2" @@ -216,6 +216,7 @@ function stowpkg_build () { # Dispatch if grep -q "^stowpkg_$ACTION () {$" $0; then __stowpkg_initialize + shift stowpkg_$ACTION $* else stowpkg_usage |