Skip to content

Commit d787a5f

Browse files
add missing shift
1 parent 92ee2d1 commit d787a5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

udroid/src/udroid.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,8 @@ list() {
635635
}
636636

637637
remove() {
638-
local _name
639-
local arg
638+
local _name=""
639+
local arg=""
640640
local path=${DEFAULT_FS_INSTALL_DIR}
641641

642642
while [ $# -gt 0 ]; do
@@ -740,8 +740,8 @@ while [ $# -gt 0 ]; do
740740
case $1 in
741741
--install|-i) shift 1; install $@ ; break ;;
742742
--login|-l) shift 1; login $@; break ;;
743-
--remove | --uninstall ) remove $@; break;;
744-
--reset | --reinstall ) _reset $@; break;;
743+
--remove | --uninstall ) shift 1 ; remove $@; break;;
744+
--reset | --reinstall ) shift 1 ; _reset $@; break;;
745745
--list) shift 1; list $@; break ;;
746746
*) echo "unkown option [$1]"; break ;;
747747
esac

0 commit comments

Comments
 (0)