Switch to bash for quotes support in arguments for gitlab-rake

This commit is contained in:
Pirate Praveen 2021-11-04 02:01:51 +05:30
parent e1c21b132b
commit fef750d687

View file

@ -1,5 +1,5 @@
#! /bin/sh
#! /bin/bash
# Using bash for ${variable@Q} option for passing quotes from command line argument to rake
set -e
# Read debian specific configuration
@ -9,6 +9,4 @@ export DB RAILS_ENV
cd /usr/share/gitlab
# Check gitlab is configured correctly
printf "Check if Gitlab is configured correctly...\n"
runuser -u ${gitlab_user} -- sh -c "/usr/bin/bundle exec rake $@"
runuser -u ${gitlab_user} -- sh -c "/usr/bin/bundle exec rake ${@@Q}"