1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-08 04:59:37 +02:00

scripts: Remove beescrawl.dat with -f

Avoid interactive prompts due to e.g. bad file modes.
Dieser Commit ist enthalten in:
Vladimir Panteleev
2020-06-17 06:59:43 +00:00
Ursprung 8aa343cecb
Commit 2427dd370e
+1 -1
Datei anzeigen
@@ -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"