Custom delete query
This commit is contained in:
parent
396dc38a8a
commit
7393fbc55f
1 changed files with 8 additions and 1 deletions
|
@ -81,7 +81,14 @@ for arrval in $(find $bedir -mindepth 1 -maxdepth 1 -type d | grep @root | cut -
|
||||||
bootenvs+=("$arrval")
|
bootenvs+=("$arrval")
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -f $grubdir/*
|
# Files, which won't be deleted
|
||||||
|
declare keepfiles=("00_header" "30_uefi-firmware")
|
||||||
|
for toDelete in $(ls $grubdir); do
|
||||||
|
if echo ${keepfiles[@]} | grep -q $toDelete; then
|
||||||
|
rm -f $grubdir/$toDelete
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
for be in ${bootenvs[@]}; do
|
for be in ${bootenvs[@]}; do
|
||||||
parseTimestampHuman "$be"
|
parseTimestampHuman "$be"
|
||||||
parseTimestamp "$be"
|
parseTimestamp "$be"
|
||||||
|
|
Loading…
Reference in a new issue