nixos/gitlab-runner: fix shell syntax preventing build

The build fails when configFile is provided because of shellcheck
detects missing quotes here.
This commit is contained in:
Karel Kočí 2023-02-13 13:20:26 +01:00
parent 3ea51a72e4
commit 116872aedd
No known key found for this signature in database
GPG Key ID: D83BD732AC2BD828

View File

@ -34,7 +34,7 @@ let
text = if (cfg.configFile != null) then ''
cp ${cfg.configFile} ${configPath}
# make config file readable by service
chown -R --reference=$HOME $(dirname ${configPath})
chown -R --reference="$HOME" "$(dirname ${configPath})"
'' else ''
export CONFIG_FILE=${configPath}