fix: correct shfmt and update error message

This commit is contained in:
Jose Diaz-Gonzalez committed 2019-05-12 19:04:50 -04:00
1 parent 8551dfb297
commit a717cb99a3
1 file changed
+2 -2
+2 -2
View File
@@ -18,14 +18,14 @@ add_keys() {
elif [[ -p /dev/stdin ]]; then
local key_contents
read -r key_contents
echo "$key_contents" > "$TMP_KEY_FILE"
echo "$key_contents" >"$TMP_KEY_FILE"
KEY_FILE="$TMP_KEY_FILE"
else
dokku_log_fail "No key specified via file or pipe"
fi
if [[ -s "$KEY_FILE" ]]; then
dokku_log_fail "No key specified via file or pipe"
dokku_log_fail "Empty key was specified"
fi
local count="$(wc -l "$KEY_FILE")"