File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /usr/bin/env sh
1+ #! /usr/bin/env bash
22
3- if [ -x node_modules/.bin/softvisio-cli ]; then
4- node_modules/.bin/softvisio-cli git commit-msg $1 || exit 1
5- elif [ -x " $( command -v softvisio-cli) " ]; then
6- softvisio-cli git commit-msg $1 || exit 1
3+ set -Eeuo pipefail
4+
5+ if [[ -x node_modules/.bin/softvisio-cli ]]; then
6+ node_modules/.bin/softvisio-cli git commit-msg $1
7+ elif [[ -x " $( command -v softvisio-cli) " ]]; then
8+ softvisio-cli git commit-msg $1
79fi
Original file line number Diff line number Diff line change 1- #! /usr/bin/env sh
1+ #! /usr/bin/env bash
22
3- if [ -x node_modules/.bin/softvisio-cli ]; then
4- node_modules/.bin/softvisio-cli git pre-commit || exit 1
5- elif [ -x " $( command -v softvisio-cli) " ]; then
6- softvisio-cli git pre-commit || exit 1
3+ set -Eeuo pipefail
4+
5+ if [[ -x node_modules/.bin/softvisio-cli ]]; then
6+ node_modules/.bin/softvisio-cli git pre-commit
7+ elif [[ -x " $( command -v softvisio-cli) " ]]; then
8+ softvisio-cli git pre-commit
79fi
You can’t perform that action at this time.
0 commit comments