Commit 8379045a by Han Su Kim

Make sure the only output is the filter

parent b2eefd08
...@@ -38,7 +38,7 @@ if [[ -z $syncdb ]]; then ...@@ -38,7 +38,7 @@ if [[ -z $syncdb ]]; then
fi fi
if [[ $db_dry_run == "false" ]]; then if [[ $db_dry_run == "false" ]]; then
# Set this to an empty string if db_dry_run is # Set this to an empty string if db_dry_run is
# not set. By default the db_dry_run var is # not set. By default the db_dry_run var is
# set to --db-dry-run # set to --db-dry-run
...@@ -62,9 +62,9 @@ extra_var_args+=" -e edxapp_user=jenkins" ...@@ -62,9 +62,9 @@ extra_var_args+=" -e edxapp_user=jenkins"
extra_var_args+=" -e syncdb=$syncdb" extra_var_args+=" -e syncdb=$syncdb"
# Generate the json configuration files # Generate the json configuration files
ansible-playbook -c local $extra_var_args --tags edxapp_cfg -i localhost, -s -U jenkins edxapp.yml ansible-playbook -c local "$extra_var_args" --tags edxapp_cfg -i localhost, -s -U jenkins edxapp.yml
# Run migrations and replace literal '\n' with actual newlines to make the output # Run migrations and replace literal '\n' with actual newlines to make the output
# easier to read # easier to read
ansible-playbook -v -c local $extra_var_args -i localhost, -s -U jenkins edxapp_migrate.yml | sed 's/\\n/\n/g' ansible-playbook -v -c local "$extra_var_args" -i localhost, -s -U jenkins edxapp_migrate.yml | sed 's/\\n/\n/g'
...@@ -54,10 +54,10 @@ repo_basename=$(basename "$repo") ...@@ -54,10 +54,10 @@ repo_basename=$(basename "$repo")
cd /var/tmp cd /var/tmp
if [[ ! -d $repo_basename ]]; then if [[ ! -d $repo_basename ]]; then
$noop git clone "$repo" "$repo_basename" --mirror $noop git clone "$repo" "$repo_basename" --mirror > /dev/null 2>&1
else else
$noop cd "/var/tmp/$repo_basename" $noop cd "/var/tmp/$repo_basename"
$noop git fetch $noop git fetch > /dev/null > /dev/null 2>&1
fi fi
$noop cd "/var/tmp/$repo_basename" $noop cd "/var/tmp/$repo_basename"
......
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