From ffb716b5f7ce38d2f02426a16def6f7cc6a1b250 Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Fri, 23 Mar 2012 18:32:12 +0000 Subject: Fix various runtime issues in tbdiff-switch. --- tbdiff-switch/tbdiff-switch | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tbdiff-switch/tbdiff-switch b/tbdiff-switch/tbdiff-switch index c2b168d..8f7b63c 100755 --- a/tbdiff-switch/tbdiff-switch +++ b/tbdiff-switch/tbdiff-switch @@ -21,7 +21,7 @@ set -x # read input parameters device="$1" -target_subvolume="$3" +target_subvolume="$2" # print usage information if not all parameters are provided if [ -z "$device" ] || @@ -31,11 +31,6 @@ then exit 1 fi -if [ ! -f "$patch_file" ]; then - echo "Patch file \"$patch_file\" does not exist" >&2 - exit 1 -fi - # mount the root btrfs file system rootfs="$(busybox mktemp -d)" mount -t btrfs "$device" "$rootfs" @@ -54,7 +49,6 @@ fi if [ -e "$target_subvolume-run" ]; then echo "Deleting existing snapshot \"$target_subvolume-run\"" btrfs subvolume delete "$target_subvolume-run" - exit 1 fi echo "Creating snapshot \"$target_subvolume-run\" from \"$target_subvolume\"" -- cgit v1.2.1