1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-24 11:29:06 +01:00

Added missing shift

This commit is contained in:
Lukas Macura 2016-04-08 23:29:30 +02:00
parent 8dcc0e595a
commit b3a773bb3c

7
zaf
View File

@ -71,6 +71,7 @@ update)
;; ;;
show) show)
shift;
shift $(zaf_shift "$@") shift $(zaf_shift "$@")
if [ -z "$1" ]; then if [ -z "$1" ]; then
zaf_list_plugins | while read plugin; do zaf_list_plugins | while read plugin; do
@ -95,6 +96,7 @@ plugins)
;; ;;
items) items)
shift
shift $(zaf_shift "$@") shift $(zaf_shift "$@")
if [ -z "$1" ]; then if [ -z "$1" ]; then
zaf_list_items zaf_list_items
@ -104,6 +106,7 @@ items)
;; ;;
test) test)
shift
shift $(zaf_shift "$@") shift $(zaf_shift "$@")
if echo $1|grep -q '\.'; then if echo $1|grep -q '\.'; then
zaf_test_item "$1" zaf_test_item "$1"
@ -122,6 +125,7 @@ test)
done done
;; ;;
get) get)
shift
shift $(zaf_shift "$@") shift $(zaf_shift "$@")
if echo $1|grep -q '\.'; then if echo $1|grep -q '\.'; then
zaf_get_item "$1" zaf_get_item "$1"
@ -139,6 +143,7 @@ get)
done done
;; ;;
install) install)
shift
shift $(zaf_shift "$@") shift $(zaf_shift "$@")
[ -z "$1" ] && echo "$0 install plugin [plugin]..." [ -z "$1" ] && echo "$0 install plugin [plugin]..."
for p in $@; do for p in $@; do
@ -168,6 +173,7 @@ reinstall)
;; ;;
remove) remove)
shift
shift $(zaf_shift "$@") shift $(zaf_shift "$@")
[ -z "$1" ] && echo "$0 remove plugin [plugin]..." [ -z "$1" ] && echo "$0 remove plugin [plugin]..."
for p in $@; do for p in $@; do
@ -194,6 +200,7 @@ self-upgrade)
;; ;;
self-remove) self-remove)
shift
shift $(zaf_shift "$@") shift $(zaf_shift "$@")
zaf_os_specific zaf_check_deps zaf && zaf_err "Zaf is installed as system package. Cannot self-remove." zaf_os_specific zaf_check_deps zaf && zaf_err "Zaf is installed as system package. Cannot self-remove."
. /etc/zaf.conf . /etc/zaf.conf