Skip to content
Snippets Groups Projects
Commit dc560229 authored by ghuter's avatar ghuter
Browse files

site-runner now writes its warnings messages to stderr

the previous behaviour was causing a bug because all "words" written to
stdout are later interpreted as IDs
parent 5c62a95a
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ if [ -d "$repo_dir" ]; then ...@@ -13,7 +13,7 @@ if [ -d "$repo_dir" ]; then
fetch_url=$(git -C "$repo_dir" remote -v | awk 'NR == 1 {print $2}') fetch_url=$(git -C "$repo_dir" remote -v | awk 'NR == 1 {print $2}')
if [ "$fetch_url" != "$repo_url" ]; then if [ "$fetch_url" != "$repo_url" ]; then
echo 'bad fetch url. recloning..' echo 'bad fetch url. recloning..' >&2
rm -rf "$repo_dir" rm -rf "$repo_dir"
try git clone -b "$branch" "$repo_url" "$repo_dir" try git clone -b "$branch" "$repo_url" "$repo_dir"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment