diff --git a/.gitattributes b/.gitattributes index 273764a..9490f39 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ +*.py text eol=lf *.sh text eol=lf *.exe binary *.apk binary diff --git a/scripts/build.sh b/scripts/build.sh index 0e6935a..c250821 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -42,6 +42,10 @@ SUDO="$(which sudo 2>/dev/null)" if [ -z "$SUDO" ]; then unset SUDO fi +WSA_WORK_ENV="${WORK_DIR:?}"/ENV +if [ -f "$WSA_WORK_ENV" ]; then rm -f "${WSA_WORK_ENV:?}"; fi +touch "$WSA_WORK_ENV" +export WSA_WORK_ENV umount_clean() { if [ -d "$MOUNT_DIR" ]; then echo "Cleanup Work Directory" @@ -88,7 +92,7 @@ abort() { } trap abort INT TERM -function Gen_Rand_Str { +Gen_Rand_Str() { tr -dc 'a-zA-Z0-9'