Skip to content

Commit

Permalink
installer: Fix ch_con function calls
Browse files Browse the repository at this point in the history
The ch_con function was renamed to ch_con_system in a previous commit
but all calls were not renamed, so this change fixes that.
Addresses following errors during zip install:
/tmp/installer.sh: line 1454: ch_con: not found
/tmp/installer.sh: line 2958: ch_con: not found
/tmp/installer.sh: line 2961: ch_con: not found
  • Loading branch information
razorloves authored and mfonville committed Aug 16, 2020
1 parent 837aa99 commit 6b041bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/templates/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ install_extracted() {
set_perm 0 0 644 "/system/${file}"
done
for dir in $dir_list; do
ch_con "/system/${dir}"
ch_con_system "/system/${dir}"
set_perm 0 0 755 "/system/${dir}"
done
bkup_list="$newline${file_list}${bkup_list}"
Expand Down Expand Up @@ -2681,10 +2681,10 @@ set_progress 0.85
find /system/vendor/pittpatt -type d -exec chown 0:2000 '{}' \; 2>/dev/null # Change pittpatt folders to root:shell per Google Factory Settings

set_perm 0 0 755 "/system/addon.d/70-gapps.sh"
ch_con "/system/addon.d/70-gapps.sh"
ch_con_system "/system/addon.d/70-gapps.sh"

set_perm 0 0 644 "$g_prop"
ch_con "$g_prop"
ch_con_system "$g_prop"

set_progress 0.92
quit
Expand Down

0 comments on commit 6b041bf

Please sign in to comment.