Fix bug when passing more than one file to changes

pull/42/merge
Miguel Silvestre 8 years ago committed by sobolevn
parent 221fd88efc
commit 83709ec170
No known key found for this signature in database
GPG Key ID: FF672D568AE3C73E

@ -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