Skip to content

Commit

Permalink
updated until conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
johncoleman83 committed Oct 20, 2018
1 parent bc431c0 commit 419d441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion note_taker.bash
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ handle_options () {
# get the text of the penultimate line and assign it to LINE_TEXT
LINE_TEXT="$(tail -n +$LINE_NUMBER $NOTE_PAD_PATH | head -n 1)"
# as long as LINE_TEXT is not empty and LINE_NUMBER is not 0
until [ -z "$LINE_TEXT" ] || [ "$LINE_NUMBER" -eq 0 ]; do
until [[ -z "$LINE_TEXT" || "$LINE_NUMBER" -eq 0 ]]; do
echo "... removing $LINE_TEXT"
# delete the last line of the notes file by copying a shortened version
# to a temp file and then overwriting the original with the temp
Expand Down

0 comments on commit 419d441

Please sign in to comment.