diff options
author | 2024-07-25 16:21:28 -0700 | |
---|---|---|
committer | 2024-07-25 16:21:28 -0700 | |
commit | 8726dcd2282c63d1145f2f355c3afa29867be53a (patch) | |
tree | 2b4b2d305a6219e610ad75dfd2e17a563189d6ec /bin | |
parent | dd9b0c1be85dc465a0ae27b950155a989b0d53e8 (diff) |
Fix mistake made when moving installmod from shell function standalone script
Bug: 355509078
Test: run installmod
Change-Id: I6ac58e8b2d58463f50eef54c6c29ce3bd399d0da
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/installmod | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/installmod b/bin/installmod index 1d0d836ff..1ad5b8412 100755 --- a/bin/installmod +++ b/bin/installmod @@ -28,7 +28,6 @@ if [[ $# -eq 0 ]]; then return 1 fi -local _path _path=$(outmod ${@:$#:1}) if [ $? -ne 0 ]; then return 1 @@ -39,7 +38,7 @@ if [ -z "$_path" ]; then echo "Module '$1' does not produce a file ending with .apk (try 'refreshmod' if there have been build changes?)" >&2 return 1 fi -local serial_device="" +serial_device="" if [[ "$1" == "-s" ]]; then if [[ $# -le 2 ]]; then echo "-s requires an argument" >&2 @@ -48,7 +47,7 @@ if [[ "$1" == "-s" ]]; then serial_device="-s $2" shift 2 fi -local length=$(( $# - 1 )) +length=$(( $# - 1 )) echo adb $serial_device install ${@:1:$length} $_path adb $serial_device install ${@:1:$length} $_path |