mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-02 05:43:02 +02:00
confd: silence any error from dagger 'ls *.tar.gz'
Do not log error if no tarballs exist. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
committed by
Tobias Waldekranz
parent
6a417f2f23
commit
b70d0015a6
@@ -157,7 +157,7 @@ do_prune()
|
||||
local keep=${1:-10}
|
||||
|
||||
cd "$basedir"
|
||||
rm -f old=$(ls -rv *.tar.gz | tail "+$((keep + 1))")
|
||||
rm -f old=$(ls -rv *.tar.gz 2>/dev/null | tail "+$((keep + 1))")
|
||||
}
|
||||
|
||||
usage()
|
||||
|
||||
Reference in New Issue
Block a user