From 21da409977eefc54f4bae95f9c1a7061a43a3701 Mon Sep 17 00:00:00 2001 From: kevin zhuang Date: Tue, 14 Apr 2020 17:01:56 +1000 Subject: [PATCH] fix freset --- scripts/freset | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/freset b/scripts/freset index 1bec877..efc974f 100755 --- a/scripts/freset +++ b/scripts/freset @@ -60,7 +60,7 @@ if [[ -n "${search_commits}" ]]; then xargs -I __ /usr/bin/git --git-dir=${DOTBARE_DIR} --work-tree=${DOTBARE_TREE} show --color=always __" | \ awk '{print $1}') [[ -z "${selected_commites}" ]] && exit 0 - get_confirmation "Reset HEAD to ${selected_commites} ${reset_option}?" + confirm=$(get_confirmation "Reset HEAD to ${selected_commites} ${reset_option}?") [[ "${confirm}" != 'y' ]] && exit 0 /usr/bin/git --git-dir="${DOTBARE_DIR}" --work-tree="${DOTBARE_TREE}" reset "${selected_commites}" "${reset_option}" else