From a4090c7bb3941b2cca5b8579aa095e648bce3196 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.org>
Date: Tue, 20 Feb 2018 13:18:05 -0500
Subject: [PATCH] shellcheck

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
---
 bin/steps/safety | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/steps/safety b/bin/steps/safety
index a1941e22..4ce2ab5e 100755
--- a/bin/steps/safety
+++ b/bin/steps/safety
@@ -4,13 +4,13 @@ source $BIN_DIR/utils
 set +e
 
     tmpfile=$(mktemp /tmp/heroku-buildpack.XXXXX)
-    /app/.heroku/python/bin/python $ROOT_DIR/vendor/safety.zip 2>&1 > $tmpfile
+    /app/.heroku/python/bin/python $ROOT_DIR/vendor/safety.zip 2>&1 > "$tmpfile"
 
-    if [[ $? != 0 ]]; then
+    if [[ "$?" != 0 ]]; then
         puts-warn "KNOWN SECURITY VULNERABILITIES FOUND IN DEPENDENCIES!"
-        cat "$tmpfile" | indent
+        indent < "$tmpfile"
     fi
 
-    rm -fr $tmpfile
+    rm -fr "$tmpfile"
 
 set -e
\ No newline at end of file
-- 
GitLab