Skip to content

Commit

Permalink
fix(add-var): fix issue with newline
Browse files Browse the repository at this point in the history
  • Loading branch information
Deavon M. McCaffery committed Oct 31, 2017
1 parent 563ff51 commit a47ee5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scripts/add-var.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ add-var() {
local varpath="$AM_PROMPT/user/variables.sh"

echo Adding varable: $v
echo "\n$v" >> "$varpath"
echo >> "$varpath"
echo "$v" >> "$varpath"
source "$varpath"
}

Expand Down

0 comments on commit a47ee5f

Please sign in to comment.