Skip to content

Commit 7526337

Browse files
Enforce Unix lf endings for shell scripts (#1637)
* Update init-sandbox.sh * chore: enforce LF endings for all shell scripts
1 parent 64b3568 commit 7526337

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sh text eol=lf

src/plugins/terminal/scripts/init-sandbox.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,19 @@ fi
3939

4040
ARGS="--kill-on-exit"
4141

42-
for system_mnt in /apex /odm /product /system /system_ext /vendor \
43-
/linkerconfig/ld.config.txt \
44-
/linkerconfig/com.android.art/ld.config.txt \
45-
/plat_property_contexts /property_contexts; do
42+
43+
44+
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
4645

4746
if [ -e "$system_mnt" ]; then
4847
system_mnt=$(realpath "$system_mnt")
4948
ARGS="$ARGS -b ${system_mnt}"
5049
fi
5150
done
51+
52+
53+
54+
5255
unset system_mnt
5356

5457
ARGS="$ARGS -b /sdcard"

0 commit comments

Comments
 (0)