diff --git a/home.nix b/home.nix index 18e0970..b727a5e 100644 --- a/home.nix +++ b/home.nix @@ -288,8 +288,9 @@ cd $hm_before_commit ''; gacp = '' git diff +set gacp_read $(read -P 'continue ? [Y/n] ') set gacp_n n -if [ "$(read -P 'continue ? [Y/n] ')" != gacp_n ] +if [ "$gacp_read" != $gacp_n ] git add . git commit git push