mirror of
https://github.com/YunoHost-Apps/dokuwiki_ynh.git
synced 2024-09-03 18:26:20 +02:00
Do not use rm -rf !
This commit is contained in:
parent
d884f34618
commit
dc6168a0e3
1 changed files with 1 additions and 6 deletions
|
@ -196,12 +196,7 @@ if [ -f "$final_path/data/deleted.files" ]; then
|
|||
# Move to the dokuwiki installation folder so the "official" commands can be used without adaptation
|
||||
cd $final_path
|
||||
|
||||
# This command could not remove directory
|
||||
#grep -Ev '^($|#)' data/deleted.files | xargs -n 1 rm -vf
|
||||
# => "rm: cannot remove 'vendor/easybook/geshi': Is a directory"
|
||||
|
||||
# That one works as expected
|
||||
grep -Ev '^($|#)' data/deleted.files | xargs -n 1 rm -fr
|
||||
grep --extended-regexp --invert-match '^($|#)' data/deleted.files | xargs --max-args=1 rm --force --dir || true
|
||||
)
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue