Skip to content

Commit e81fcce

Browse files
feat(experimental): run-script: change logic
1 parent 1077e41 commit e81fcce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

udroid/src/udroid.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ login() {
448448
if [ -f "$script" ]; then
449449
LOG "login() => run-script defined as '$run_script' at '$script'"
450450
chmod +x "$script"
451-
cp "$script" "${root_fs_path}/tmp/"
452-
run_script="/tmp/$(basename "$run_script")"
451+
cp "$script" "${root_fs_path}/"
452+
run_script="/$(basename "$run_script")"
453453
set -- "/bin/su" "-l" "$login_user" "-c" "$run_script"
454454
else
455455
ELOG "ERROR: run-script '$run_script' not found!"

0 commit comments

Comments
 (0)