From 7f11bb323ccfca4b1bcd78362fb7b1a092b316ef Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 17 Feb 2018 11:53:54 +0100 Subject: [PATCH] fix: pv status remote bug --- backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup b/backup index fe73247..e268e5c 100755 --- a/backup +++ b/backup @@ -81,7 +81,7 @@ BackupVMDiscs() { elif [ "$DiskType" == "block" ]; then local readonly DiskName=$(echo $Disk \ | sed 's/^\///' | sed 's/\//-/g') - local readonly DiskSize=$(fdisk -l $Disk \ + local readonly DiskSize=$(ssh $remoteLogin fdisk -l $Disk \ | head -n 1 | awk -F "," '{print $2'} \ | sed 's/[ \| bytes]//g') -- 2.39.5