diff scripts/remote-backup-all.sh @ 318:c61524abdfd6

correcting adding project to remote backup scripts target
author aldrich@ssdt-ohio.org
date Wed, 30 Oct 2019 15:49:51 +0100
parents 146c0c263cf9
children 7c460a921709
line wrap: on
line diff
--- a/scripts/remote-backup-all.sh	Wed Oct 30 13:28:14 2019 +0100
+++ b/scripts/remote-backup-all.sh	Wed Oct 30 15:49:51 2019 +0100
@@ -37,7 +37,7 @@
 
 IRN=$(docker-compose exec -T $container1 psql --username=postgres --dbname=$container1 -t -c 'select irn from organization') 
 
-if ["$IRN" == ""]; then
+if [ "$IRN" == "" ]; then
 IRN=$(docker-compose exec -T $container2 psql --username=postgres --dbname=$container2 -t -c 'select irn from organization') 
 fi
 
@@ -103,6 +103,6 @@
 
 echo " "
 
-echo "completed sending ${backupFile1}.gz, ${backupFile2}.gz, and ${backupFile3} to ${remoteTarget}/$(project) as user $userName"
+echo "completed sending ${backupFile1}.gz, ${backupFile2}.gz, and ${backupFile3} to ${remoteTarget}/${project} as user $userName"