Skip to content

Commit

Permalink
fix(backup): fix remove-backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
Deavon M. McCaffery committed Mar 10, 2017
1 parent 856e21d commit 9d8b964
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/scripts/remove-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@ if [ ! -z "${PROMPT_DEBUG:-}" ]; then
fi

remove-backup() {
rm -rf $HOME/.am/prompt/backup 2>/dev/null
local backup=$1

if [ -z "${backup:-}" ]; then
backup="prompt"
fi

rm -rf "$HOME/.am/backup/$backup" 2>/dev/null
}

0 comments on commit 9d8b964

Please sign in to comment.