From 38e12d13b2e6333e696e1349a9eba234abd264bb Mon Sep 17 00:00:00 2001 From: cig Date: Wed, 1 Jun 2022 11:16:12 +0200 Subject: [PATCH] remove trailing slash --- vmbackup.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vmbackup.sh b/vmbackup.sh index 18a1440..3a7a30d 100755 --- a/vmbackup.sh +++ b/vmbackup.sh @@ -24,11 +24,11 @@ fi outputdir=${basedir}/$(date -I) -if [ $# -ne 1 ] ; then - echo "Usage: $O vm" - echo "Stop, backup and start given vm" - _exit 42 -fi +if [ $# -ne 1 ] ; then + echo "Usage: $O vm" + echo "Stop, backup and start given vm" + _exit 42 +fi function checkRunning { local machine=$1 @@ -53,6 +53,6 @@ if ( checkRunning $machine ) ; then test $ret -eq 0 && find ${basedir} -maxdepth 1 -type d -mtime +7 -exec echo rm -fr {} \; umount /mnt/backups &> /dev/null _exit $ret -fi +fi _mail "vm $machine not running" _exit 43