From e18eb8caf04ed4389996a715d23344a095c85895 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 29 Mar 2022 02:45:11 +0200 Subject: [PATCH] changed find command in restore thanks busybox --- src/restore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/restore.sh b/src/restore.sh index 13f5cf6..0556383 100755 --- a/src/restore.sh +++ b/src/restore.sh @@ -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 \ No newline at end of file