Commit f745b160 authored by Peter Dave Hello's avatar Peter Dave Hello

Use $(...) notation instead of legacy backticked `...` in shell script

Reference:
- https://github.com/koalaman/shellcheck/wiki/SC2006
parent 7a533749
......@@ -67,7 +67,7 @@ gitaly_log="$app_root/log/gitaly.log"
test -f /etc/default/gitlab && . /etc/default/gitlab
# Switch to the app_user if it is not they who are running the script.
if [ `whoami` != "$app_user" ]; then
if [ $(whoami) != "$app_user" ]; then
eval su - "$app_user" -c $(echo \")$shell_path -l -c \'$0 "$@"\'$(echo \"); exit;
fi
......
#!/bin/sh
output=`git grep -En '^<<<<<<< '`
output=$(git grep -En '^<<<<<<< ')
echo $output
test -z "$output"
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