Skip to content

Commit c32b9b2

Browse files
committed
try fix readonly error
1 parent 8dcfd4a commit c32b9b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

udroid/src/udroid.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,9 @@ login() {
761761
parser() {
762762
local arg=$1
763763
local mode=$2
764-
readonly suite=${arg%%:*} # readonly basically makes this public and
765-
readonly varient=${arg#*:} # unchangeable outside of this function
766-
764+
declare -g suite=${arg%%:*} # declare -g | declare globally
765+
declare -g varient=${arg#*:}
766+
767767
LOG "[USER] function args => suite=$suite varient=$varient"
768768

769769
# if TEST_MODE is set run scripts in current directory and use test.json for distro_conf

0 commit comments

Comments
 (0)