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
changes/06/11706/4
Alexander Lutay 8 years ago
parent df1e2e0a21
commit 6aa501a41c

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

Loading…
Cancel
Save