From 321760ee656e019c74d4e9003f3f9567e7b0bf2f Mon Sep 17 00:00:00 2001 From: kevin zhuang Date: Fri, 1 May 2020 12:22:54 +1000 Subject: [PATCH] apply selected stash --- scripts/fstash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/fstash b/scripts/fstash index 5aeefdb..0a15198 100755 --- a/scripts/fstash +++ b/scripts/fstash @@ -38,4 +38,5 @@ while getopts ":hf" opt; do done selected_stash=$(get_stash) -echo "${selected_stash}" +[[ -z "${selected_stash}" ]] && exit 1 +/usr/bin/git --git-dir="${DOTBARE_DIR}" --work-tree="${DOTBARE_TREE}" stash apply ${selected_stash}