summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>2021-01-12 04:38:36 +0100
committerJan Ziak <0xe2.0x9a.0x9b@gmail.com>2021-01-12 04:40:06 +0100
commite3d60b58f2377766d0265ac8f4d01fbee8d199dd (patch)
tree4f29a37ac63ed8f7890edd0832f2f3aed6a18995
parentf4212358a35267c8b3fec7a4765b6b44788f212a (diff)
downloadxfce4-dev-tools-e3d60b58f2377766d0265ac8f4d01fbee8d199dd.tar.gz
helpers: Fix command-line if git-config core.editor is unset
Closes: https://gitlab.xfce.org/xfce/xfce4-dev-tools/-/issues/43 Signed-off-by: Jan Ziak <0xe2.0x9a.0x9b@gmail.com>
-rwxr-xr-xhelpers/xfce-do-release2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/xfce-do-release b/helpers/xfce-do-release
index b350351..bf91711 100755
--- a/helpers/xfce-do-release
+++ b/helpers/xfce-do-release
@@ -151,7 +151,7 @@ edit () {
if [ "$response" = "y" ]; then
printf "\n ✓ Accepted.\n"
elif [ "$response" = "e" ]; then
- $(git config --global core.editor) $1
+ $(git config --default "${EDITOR:-vi}" --global core.editor) $1
fi
}