mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
scripts: Remove beescrawl.dat with -f
Avoid interactive prompts due to e.g. bad file modes.
This commit is contained in:
parent
8aa343cecb
commit
2427dd370e
@ -134,7 +134,7 @@ fi
|
||||
fi
|
||||
if (( "$OLD_SIZE" != "$NEW_SIZE" )); then
|
||||
INFO "Resize db: $OLD_SIZE -> $NEW_SIZE"
|
||||
[ -f "$BEESHOME/beescrawl.dat" ] && rm "$BEESHOME/beescrawl.dat"
|
||||
rm -f "$BEESHOME/beescrawl.dat"
|
||||
truncate -s $NEW_SIZE $DB_PATH
|
||||
fi
|
||||
chmod 700 "$DB_PATH"
|
||||
|
Loading…
x
Reference in New Issue
Block a user