From d64d64082bc1bf89c732398696a2fe70cb5356f9 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 7 Jun 2019 15:50:48 +0200 Subject: [PATCH] Error code on swap --- bin/swap | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/swap b/bin/swap index ee51a9a..a441685 100755 --- a/bin/swap +++ b/bin/swap @@ -18,4 +18,5 @@ elif [ -d $1 ] && [ -d $2 ]; then mv "$tmp/$1" "$2" else echo -e "\033[1;31merror:\033[0m expected two files or two directories" + exit 1 fi