Skip to content

Commit

Permalink
Update termux-restore.in
Browse files Browse the repository at this point in the history
Use one 'find' run to fix files permissions
  • Loading branch information
elig0n authored and sylirre committed Jun 13, 2024
1 parent dbadb4a commit 5e3ee19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/termux-restore.in
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ fi

# Ensure that prefix doesn't contain read-only files.
msg "Fixing read-write access to files where necessary..."
find "@TERMUX_PREFIX@" -type d -print0 | xargs -0 -r chmod u+rwx
find "@TERMUX_PREFIX@" -type f -print0 | xargs -0 -r chmod u+rw
find "@TERMUX_PREFIX@" -type d,f -print0 | xargs -0 -r chmod u+rwX

# --recursive-unlink is added intentionally to delete all orphan/extra files
# in $PREFIX. It must be restored to a clean state as in backup tarball.
Expand Down

0 comments on commit 5e3ee19

Please sign in to comment.