Bash conditional operaters needed for brackets

Removing brackets also works

Wrong diff check - inverted

Remove uninstall step

Whitespace is hard
This commit is contained in:
Casey Faist
2020-03-19 16:26:56 -04:00
parent f7c422e07d
commit b8fd617d9c
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ fi
echo "$(diff "$BUILD_DIR/requirements.txt" "$CACHE_DIR/.heroku/requirements.txt")"
# Remove python dependencies
if [[ ! -f "$CACHE_DIR/.heroku/requirements.txt" ]] || [[ diff "$BUILD_DIR/requirements.txt" "$CACHE_DIR/.heroku/requirements.txt" ]]; then
if [[ ! -f "$CACHE_DIR/.heroku/requirements.txt" ]] || ! diff "$BUILD_DIR/requirements.txt" "$CACHE_DIR/.heroku/requirements.txt" ; then
puts-step "Clearing cached dependencies"
rm -rf .heroku/python
fi