Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3191fee6 authored by Bruno Martins's avatar Bruno Martins
Browse files

envsetup: Fix long time broken path to sh

Change-Id: Ia76d14e10571dd6f3ac9f4adf288effae851ffe3
parent 5ad978c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -837,7 +837,7 @@ function dopush()
        CHKPERM="/data/local/tmp/chkfileperm.sh"
(
cat <<'EOF'
#!/system/xbin/sh
#!/system/bin/sh
FILE=$@
if [ -e $FILE ]; then
    ls -l $FILE | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf("%0o ",k);print}' | cut -d ' ' -f1