diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..dfdb8b771 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sh text eol=lf diff --git a/src/plugins/terminal/scripts/init-sandbox.sh b/src/plugins/terminal/scripts/init-sandbox.sh index 3f491f47d..3b8a7c3d8 100644 --- a/src/plugins/terminal/scripts/init-sandbox.sh +++ b/src/plugins/terminal/scripts/init-sandbox.sh @@ -39,16 +39,19 @@ fi ARGS="--kill-on-exit" -for system_mnt in /apex /odm /product /system /system_ext /vendor \ - /linkerconfig/ld.config.txt \ - /linkerconfig/com.android.art/ld.config.txt \ - /plat_property_contexts /property_contexts; do + + +for system_mnt in /apex /odm /product /system /system_ext /vendor /linkerconfig/ld.config.txt /linkerconfig/com.android.art/ld.config.txt /plat_property_contexts /property_contexts; do if [ -e "$system_mnt" ]; then system_mnt=$(realpath "$system_mnt") ARGS="$ARGS -b ${system_mnt}" fi done + + + + unset system_mnt ARGS="$ARGS -b /sdcard"