Fix bug when passing more than one file to changes

pull/64/head
Miguel Silvestre 8 years ago
parent fa7837a83b
commit b8b2609ec2

@ -18,7 +18,7 @@ function changes {
shift $((OPTIND-1))
[ "$1" = '--' ] && shift
local filenames="$1"
local filenames="$@"
if [[ -z "$filenames" ]]; then
# Checking if no filenames are passed, show diff for all files.
filenames=$(git secret list)

Loading…
Cancel
Save