From 43f0507b5be6750aa83b228a0979f902dd1ce614 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Tue, 22 Jun 2021 15:47:30 +0200 Subject: [PATCH] allow minus in hostname --- storage_helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage_helper.sh b/storage_helper.sh index cbcda54..e90e2c8 100755 --- a/storage_helper.sh +++ b/storage_helper.sh @@ -241,7 +241,7 @@ # helper function: set internal var for hostname of backup client function setBackupclient(){ - sBackupClient=`echo $1 | sed s"#[^a-zA-Z\.0-9]#_#g"` + sBackupClient=`echo $1 | sed s"#[^a-zA-Z\.0-9\-]#_#g"` if [ -z $sBackupClient ]; then echo ERROR: no backup client was given exit 1 -- GitLab