fix: correct shfmt and update error message

This commit is contained in:
Jose Diaz-Gonzalez
2019-04-23 12:21:43 -04:00
parent 8551dfb297
commit a717cb99a3

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")"