From 6ce73ccfe28408247edee0f25ce09715257e379f Mon Sep 17 00:00:00 2001 From: Yegor Pomortsev <ypomortsev@google.com> Date: Wed, 17 Apr 2019 02:37:25 +0000 Subject: [PATCH] [fx][format-code] Fix ignored --files/--target argument values Ensure the ARG variable that holds the current argument value is set. See also: https://fuchsia-review.git.corp.google.com/c/fuchsia/+/270197 Change-Id: I00a9569416f7a3dcfd73c937ae3b699dd63a0c74 --- tools/devshell/contrib/format-code | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/devshell/contrib/format-code b/tools/devshell/contrib/format-code index 9ac256bfcf0..8675861ae58 100755 --- a/tools/devshell/contrib/format-code +++ b/tools/devshell/contrib/format-code @@ -101,6 +101,7 @@ fx-config-read GET_FILES=get_git_files while [ $# -gt 0 ]; do + ARG="$1" case "$1" in --verbose) VERBOSE="1" ;; --dry-run) DRY_RUN="1" ;; -- GitLab