From abb635a24c4969304d4fffc81c38b56bb9953ed6 Mon Sep 17 00:00:00 2001 From: Quey-Liang Kao Date: Thu, 6 Aug 2015 01:44:19 +0800 Subject: [PATCH] Fix a typo in function bocker_commit In the first two line of bocker_commit(), the program checks if the arguments are valid, but the check of image does not return a correct message. --- bocker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bocker b/bocker index f794f0f..07da884 100755 --- a/bocker +++ b/bocker @@ -101,7 +101,7 @@ function bocker_logs() { #HELP View logs from a container:\nBOCKER logs [[ "$(bocker_check "$1")" == 1 ]] && echo "No container named '$1' exists" && exit 1 - [[ "$(bocker_check "$2")" == 1 ]] && echo "No image named '$1' exists" && exit 1 + [[ "$(bocker_check "$2")" == 1 ]] && echo "No image named '$2' exists" && exit 1 bocker_rm "$2" && btrfs subvolume snapshot "$btrfs_path/$1" "$btrfs_path/$2" > /dev/null echo "Created: $2" }