use rm -f instead of rm

Suppresses an error message, if the file does not exist.
This commit is contained in:
Sailing74 2017-11-06 08:32:45 +01:00 committed by GitHub
parent b45e8e95a6
commit 585432f0fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ wait_for () {
case "$1" in
start)
[ -d $HDD_LOG/ ] || mkdir $HDD_LOG/
rm $LOG2RAM_LOG
rm -f $LOG2RAM_LOG
mount --bind $RAM_LOG/ $HDD_LOG/
mount --make-private $HDD_LOG/
wait_for $HDD_LOG