changed find command in restore
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
thanks busybox
This commit is contained in:
parent
d5db92eaa5
commit
e18eb8caf0
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
#loop volumes
|
||||||
for VOLUME in $VOLUMES; do
|
for VOLUME in $VOLUMES; do
|
||||||
@ -9,3 +9,4 @@ for VOLUME in $VOLUMES; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
find /tmp -maxdepth 1 -type d -exec basename {} \; | cut
|
Loading…
Reference in New Issue
Block a user