Commit e1602523 authored by Krzysztof Mochocki's avatar Krzysztof Mochocki
Browse files

Fix paths

parent 0bc3721e
Pipeline #45747 passed with stages
in 18 minutes and 12 seconds
......@@ -5,7 +5,11 @@
set -euo pipefail
# acquiring hash without git
GIT_HASH=`cat "$1/.git/$(cat $1/.git/HEAD | cut -d ' ' -f 2)"`
GIT_HASH=`cat $1/.git/HEAD | cut -d ' ' -f 2`
if [[ -f $GIT_HASH ]]
then
GIT_HASH=`cat "$1/.git/$GIT_HASH"`;
fi;
echo "
CREATE SCHEMA IF NOT EXISTS hafah_private;
......@@ -15,5 +19,5 @@ CREATE TABLE hafah_private.version(
git_hash TEXT
);
INSERT INTO hafah_private.version VALUES($GIT_HASH);
INSERT INTO hafah_private.version VALUES( '$GIT_HASH' );
" > $1/set_version_in_sql.pgsql
Supports Markdown
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