commit | 5bc28e271d855052d5a9d2095e38ad72c09bb69b | [log] [tgz] |
---|---|---|
author | Bruno Martins <bgcngm@gmail.com> | Tue Feb 08 19:35:40 2022 +0000 |
committer | Ayan Mukherjee <mukherjeeayan725@gmail.com> | Mon Jun 13 05:05:45 2022 -0400 |
tree | 4270735088fee0140f55a3f43cc30c16e3289e7f | |
parent | f88b6eb722134bb2e3e8f69cc576044748459ed3 [diff] [blame] |
envsetup: Fix long time broken path to sh Change-Id: Ia76d14e10571dd6f3ac9f4adf288effae851ffe3
diff --git a/build/envsetup.sh b/build/envsetup.sh index 3361364..c4ceb93 100644 --- a/build/envsetup.sh +++ b/build/envsetup.sh
@@ -845,7 +845,7 @@ 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