Skip to content
Snippets Groups Projects
Commit 43f0507b authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

allow minus in hostname

parent 497cdbe5
No related branches found
No related tags found
No related merge requests found
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
# helper function: set internal var for hostname of backup client # helper function: set internal var for hostname of backup client
function setBackupclient(){ 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 if [ -z $sBackupClient ]; then
echo ERROR: no backup client was given echo ERROR: no backup client was given
exit 1 exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment