--- a/handlers/dup.in 2018-06-29 22:12:42.000000000 +0600 +++ b/handlers/dup.in 2018-12-30 04:35:26.675079119 +0600 @@ -53,13 +53,13 @@ if [ -n "$signkey" -a -n "$encryptkey" -a "$signkey" != "$encryptkey" ]; then [ -n "$signpassword" ] || fatal "The signpassword option must be set because signkey is different from encryptkey." fi -if [ "`echo $desturl | @AWK@ -F ':' '{print $1}'`" == "s3+http" ]; then +if [[ "`echo $desturl | @AWK@ -F ':' '{print $1}'`" == "s3+http" ]]; then [ -n "$awsaccesskeyid" -a -n "$awssecretaccesskey" ] || fatal "AWS access keys must be set for S3 backups." fi -if [ "`echo $desturl | @AWK@ -F ':' '{print $1}'`" == "cf+http" ]; then +if [[ "`echo $desturl | @AWK@ -F ':' '{print $1}'`" == "cf+http" ]]; then [ -n "$cfusername" -a -n "$cfapikey" ] || fatal "Cloudfiles access keys must be set for S3 backups." fi -if [ "`echo $desturl | @AWK@ -F ':' '{print $1}'`" == "dpbx" ]; then +if [[ "`echo $desturl | @AWK@ -F ':' '{print $1}'`" == "dpbx" ]]; then [ -n "$dropboxappkey" -a -n "$dropboxappsecret" ] || fatal "Dropbox app ID and secret must be set for Dropbox backups." if [ ! -n "$dropboxaccesstoken" ]; then