changed find command in restore
All checks were successful
continuous-integration/drone/push Build is passing

thanks busybox
This commit is contained in:
Djeeberjr 2022-03-29 02:45:11 +02:00
parent d5db92eaa5
commit e18eb8caf0

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
VOLUMES=$(find /backup -maxdepth 1 -type d -printf '%f\n' | tail -n +2)
VOLUMES=$(find /tmp -maxdepth 1 -type d -exec basename {} \; | tail -n +2)
#loop volumes
for VOLUME in $VOLUMES; do
@ -9,3 +9,4 @@ for VOLUME in $VOLUMES; do
done
find /tmp -maxdepth 1 -type d -exec basename {} \; | cut