diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-23 18:32:12 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-23 18:32:12 +0000 |
commit | ffb716b5f7ce38d2f02426a16def6f7cc6a1b250 (patch) | |
tree | 5265347de31856311c946c966980b935c6df617e | |
parent | 7dd7c3015342cc0239ea5869bfaab8df5a2e83c3 (diff) | |
download | tbdiff-ffb716b5f7ce38d2f02426a16def6f7cc6a1b250.tar.gz |
Fix various runtime issues in tbdiff-switch.
-rwxr-xr-x | tbdiff-switch/tbdiff-switch | 8 |
1 files changed, 1 insertions, 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\"" |