Fix chromium previous sessions removal

Removing notes from previous sessions was filing due to path containing spaces (.config/chromium/Last Session) being passed to rm command. find with exec handles that case better
This commit is contained in:
Cristian Pop 2019-09-22 15:34:01 +03:00 committed by GitHub
parent 818a81335f
commit 73eed6a4f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ if [ -f .config/chromium/Default/Preferences ]; then
fi fi
# Remove notes of previous sessions, if any # Remove notes of previous sessions, if any
find .config/chromium/ -name "Last *" | xargs rm find .config/chromium/ -name "Last *" -exec rm {} +
# Start and detach Chromium # Start and detach Chromium
# http://peter.sh/experiments/chromium-command-line-switches/ # http://peter.sh/experiments/chromium-command-line-switches/