Search Linux Wireless

[PATCH 11/13] compat-wireless: Move refresh logic into the loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Ozan Çağlayan <ozancag@xxxxxxxxx>
---
 scripts/admin-update.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh
index e701406..f0c7ad0 100755
--- a/scripts/admin-update.sh
+++ b/scripts/admin-update.sh
@@ -610,11 +610,12 @@ ORIG_CODE=$(find ./ -type f -name  \*.[ch] |
 printf "\n${CYAN}compat-drivers code metrics${NORMAL}\n\n" > $CODE_METRICS
 printf "${PURPLE}%10s${NORMAL} - Total upstream lines of code being pulled\n" $ORIG_CODE >> $CODE_METRICS
 
-for dir in $EXTRA_PATCHES; do
-	LAST_ELEM=$dir
-done
-
 for subsystem in $SUBSYSTEMS; do
+
+	for dir in $EXTRA_PATCHES; do
+		LAST_ELEM=$dir
+	done
+
 	for dir in $EXTRA_PATCHES; do
 		PATCHDIR="$dir/$subsystem"
 		if [[ ! -d $PATCHDIR ]]; then
@@ -622,7 +623,7 @@ for subsystem in $SUBSYSTEMS; do
 			continue
 		fi
 		if [[ $LAST_ELEM = $dir && "$REFRESH" = y ]]; then
-			patchRefresh $dir
+			patchRefresh $PATCHDIR
 		fi
 
 		for i in $(ls -v $PATCHDIR/*.patch 2> /dev/null); do
-- 
1.7.11.2

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux