revert whitespace changes, but keep stderr errors

This commit is contained in:
Casper da Costa-Luis
2020-01-19 18:19:01 +00:00
parent 46e0616614
commit b756f77787
2 changed files with 15 additions and 14 deletions
+14 -13
View File
@@ -1,10 +1,11 @@
#!/bin/bash
set -e
set -x
if [ ! -d "dvc" ]; then
echo "Please run this script from repository root"
exit 1
echo "Please run this script from repository root" >&2
exit 1
fi
echo 'PKG = "pip"' > dvc/utils/build.py
@@ -14,15 +15,15 @@ python setup.py bdist_wheel --universal
# Make sure we have a correct version
if [[ -n "$TRAVIS_TAG" ]]; then
pip uninstall -y dvc
if which dvc; then
echo "ERROR: dvc command still exists! Unable to verify dvc version." >&2
exit 1
fi
pip install dist/dvc-*.whl
if [[ "$(dvc --version)" != "$TRAVIS_TAG" ]]; then
echo "ERROR: 'dvc --version'$(dvc -V) doesn't match '$TRAVIS_TAG'" >&2
exit 1
fi
pip uninstall -y dvc
pip uninstall -y dvc
if which dvc; then
echo "ERROR: dvc command still exists! Unable to verify dvc version." >&2
exit 1
fi
pip install dist/dvc-*.whl
if [[ "$(dvc --version)" != "$TRAVIS_TAG" ]]; then
echo "ERROR: 'dvc --version'$(dvc -V) doesn't match '$TRAVIS_TAG'" >&2
exit 1
fi
pip uninstall -y dvc
fi
+1 -1
View File
@@ -29,7 +29,7 @@ fi
print_error()
{
echo -e "\e[31m$1\e[0m"
echo -e "\e[31m$1\e[0m" >&2
}
if [ ! -d "dvc" ]; then