fixes for if your repo path has spaces in it

This commit is contained in:
William Hilton 2022-08-31 16:31:30 -04:00
parent 1a64700368
commit 2df392e489
No known key found for this signature in database
GPG key ID: 9609B8A5928BA6B9

4
bin/g
View file

@ -175,10 +175,10 @@ if [ -z "$2" ]; then
else
read -e -p 'Message: ' -i "$current" msg
fi
echo "$msg" > $msg_file
echo "$msg" > "$msg_file"
set -e
git commit -m "$msg"
rm $msg_file
rm "$msg_file"
else
# Non-interactive
msg="${@:2}"