From 83709ec170a2a5c81a5400a6d611d7aef0119723 Mon Sep 17 00:00:00 2001 From: Miguel Silvestre Date: Fri, 17 Feb 2017 18:40:49 +0000 Subject: [PATCH] Fix bug when passing more than one file to changes --- src/commands/git_secret_changes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/git_secret_changes.sh b/src/commands/git_secret_changes.sh index b669cda9..11bc88a4 100644 --- a/src/commands/git_secret_changes.sh +++ b/src/commands/git_secret_changes.sh @@ -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)