X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=rsync-luks.sh;h=7f0a5e0a8cb4b4ee76ec08d32e6b3800a15ae823;hb=8180bf9a04c1d1d7b362adbdac2982bdf2a76d6f;hp=1b244c214acd37e228f10e58716b3631f1425e07;hpb=56758159a2d6ce0599166d86f53b46b6ccac54af;p=scripts.git
diff --git a/rsync-luks.sh b/rsync-luks.sh
index 1b244c2..7f0a5e0 100755
--- a/rsync-luks.sh
+++ b/rsync-luks.sh
@@ -14,13 +14,13 @@
# along with this program. If not, see . #
# #
# Written by and Copyright (C) Francois Fleuret #
-# Contact for comments & bug reports #
+# Contact for comments & bug reports #
#########################################################################
set -e
set -o pipefail
-if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
+if [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then
cat <
@@ -34,21 +34,21 @@ EOF
exit 0
fi
-[ -f "$1" ] && [ -f "$2" ] || (echo "$0