Browse Source

'backup.sh' ändern

Daniel Wenzel 3 years ago
parent
commit
a164744106
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backup.sh

+ 1 - 1
backup.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 cd /switchbackup
-for switch in $(cat ./creds.txt); do
+for switch in $(cat ./creds.txt | grep -v "^#"); do
 
         TP_HOST=$(echo ${switch} | cut -d ";" -f 1)
         TP_IP=$(echo ${switch} | cut -d ";" -f 2)