config-lookup.sh: create local working directory if necessary
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 31 Jan 2020 23:24:56 +0000 (15:24 -0800)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 31 Jan 2020 23:24:56 +0000 (15:24 -0800)
deployment/config-lookup.sh

index c39b081..41e0518 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 for HOST in "$@"
 do
+  if [ ! -d "files" ] ; then mkdir files ; fi
   scp -q opensrf@${HOST}:/srv/openils/conf/opensrf.xml files/${HOST}.opensrf.xml
   echo "${HOST}"
   perl ./parse-osrf-xml.pl files/${HOST}.opensrf.xml