From 6aa501a41c2d7fdf7b6331691fce752a1da385a6 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Thu, 2 Mar 2017 15:43:11 +0100 Subject: [PATCH] TT#9718 Fix shellcheck v.0.3.4-3 warning Shellcheck v.0.3.4-3 is default for jessie and installed on jenkins CI. It produces fake alarm here, while shellcheck v.0.3.7-5+ reports no issues here. Fixing warning to make it happy: In deployment.sh line 1753: find "${TARGET}/var/log" -type f -size +0 -not -name \*.ini -exec sh -c ':> ${1}' sh {} \; ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. Change-Id: I75cd28dacacc65dfdb6b7fd134b8f3c727b1b48d --- deployment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment.sh b/deployment.sh index d2cbe08..b25b17e 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1750,7 +1750,7 @@ EOT done # nuke files - find "${TARGET}/var/log" -type f -size +0 -not -name \*.ini -exec sh -c ':> ${1}' sh {} \; + find "${TARGET}/var/log" -type f -size +0 -not -name \*.ini -exec sh -c ":> \${1}" sh {} \; :>$TARGET/var/run/utmp :>$TARGET/var/run/wtmp