diff --git a/bin/steps/safety b/bin/steps/safety
index a1941e22d269975cd1c64bb26e65d5b98634357e..4ce2ab5ec8fc0e90931feb260faccb3e9f9fa908 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