envsetup: Fix long time broken path to sh

Change-Id: Ia76d14e10571dd6f3ac9f4adf288effae851ffe3
This commit is contained in:
Bruno Martins 2022-02-08 19:35:40 +00:00
parent a28fa6de34
commit 43c8f40ba9

View File

@ -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