Commit 97048654 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'Refactor/ShellScripts' into 'master'

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

See merge request gitlab-org/gitlab!32769
parents 0a066d83 f745b160
......@@ -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