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 ...@@ -4,4 +4,4 @@ for db in gitlabhq_development gitlabhq_test; do
\connect ${db} \connect ${db}
CREATE EXTENSION pg_trgm; CREATE EXTENSION pg_trgm;
EOF 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 ...@@ -9,13 +9,13 @@ if git remote | grep -q '^upstream$'; then
exit 0 exit 0
fi 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 remote set-url --push "${remote_name}" none # make 'upstream' fetch-only
git fetch "${remote_name}" master git fetch "${remote_name}" master
# check if the 'master' branch already exists # check if the 'master' branch already exists
if git show-ref --verify --quiet refs/heads/master; then 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 else
git branch master "${remote_name}"/master git branch master "${remote_name}/master"
fi fi
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
/usr/sbin/sshd -o MaxAuthTries=10 -o UseDNS=no /usr/sbin/sshd -o MaxAuthTries=10 -o UseDNS=no
#signal handler, clean termination #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 #wait for termination or crash
cnt=1 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