Commit da40e6b4 authored by Matija Čupić's avatar Matija Čupić

Fix shellscript quotes

parent 82a6424a
......@@ -4,4 +4,4 @@ for db in gitlabhq_development gitlabhq_test; do
\connect ${db}
CREATE EXTENSION pg_trgm;
EOF
done | psql -h "$(pwd)"/postgresql -d template1
done | psql -h "$(pwd)/postgresql" -d template1
......@@ -9,13 +9,13 @@ if git remote | grep -q '^upstream$'; then
exit 0
fi
git remote add "${remote_name} ${gitlab_upstream:-https://gitlab.com/gitlab-org/gitlab-ce.git}"
git remote add "${remote_name}" "${gitlab_upstream:-https://gitlab.com/gitlab-org/gitlab-ce.git}"
git remote set-url --push "${remote_name}" none # make 'upstream' fetch-only
git fetch "${remote_name}" master
# check if the 'master' branch already exists
if git show-ref --verify --quiet refs/heads/master; then
git branch --set-upstream-to="${remote_name}"/master master
git branch --set-upstream-to="${remote_name}/master" master
else
git branch master "${remote_name}"/master
git branch master "${remote_name}/master"
fi
......@@ -11,7 +11,7 @@
/usr/sbin/sshd -o MaxAuthTries=10 -o UseDNS=no
#signal handler, clean termination
trap 'kill "$(cat /var/run/sshd.pid); exit 0' TERM INT QUIT HUP
trap 'kill "$(cat /var/run/sshd.pid)"; exit 0' TERM INT QUIT HUP
#wait for termination or crash
cnt=1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment