From ad23eb51802d3438f2683914c655443eb1bec2aa Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 26 Aug 2024 16:33:15 +0200 Subject: [PATCH] rm/1 --- spcd/bootstrap.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 6b033fd..2b493e0 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -305,10 +305,9 @@ spcd_os_printenv() { } spcd_os_rm() { - spcd_os_rm__path="${1}" - if [ -e "${spcd_os_rm__path}" ]; then - echo "← ${spcd_os_rm__path}" - rm -r "${spcd_os_rm__path}" + if [ -e "${1}" ]; then + echo "← ${1}" + rm -r "${1}" fi }