Commit 69726edc authored by Felix Hilsky's avatar Felix Hilsky
Browse files

allow fixing in pre-commit script

will only change things in non-staging files. So at least if everything was added beforehand, changes of script can be reversed

but the script seems quite reliable now
parent fec5d4af
......@@ -16,13 +16,13 @@ ask() {
while true; do
if [ "${2:-}" = "Y" ]; then
prompt="Y/n"
prompt="Y/n/c(hange)"
default=Y
elif [ "${2:-}" = "N" ]; then
prompt="y/N"
prompt="y/N/c(hange)"
default=N
else
prompt="y/n"
prompt="y/n/c(hange)"
default=
fi
......@@ -39,6 +39,7 @@ ask() {
# Check if the reply is valid
case "$REPLY" in
c*|C*) ./.maindir/scripts/repairgitlabmathmd.sh ; return 1 ;;
Y*|y*) return 0 ;;
N*|n*) return 1 ;;
esac
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment