Skip to content

Commit

Permalink
examples: Fix shellcheck error in VampireDriversFunctions
Browse files Browse the repository at this point in the history
examples/printing/VampireDriversFunctions:183:24: error: Double quote
array expansions to avoid re-splitting elements. [SC2068]

Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: Pavel Filipenský <[email protected]>
  • Loading branch information
cryptomilk authored and Pavel Filipensky committed Aug 17, 2022
1 parent fe33eab commit c3823ff
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions examples/printing/VampireDriversFunctions
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ echo -e " \n\

function helpwithvampiredrivers()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithvampiredrivers ;
else
echo " ";
Expand Down Expand Up @@ -210,7 +210,7 @@ fi
# -----------------------------------------------------------------------------
function enumallfunctions()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithvampiredrivers ;
else
echo " "
Expand Down Expand Up @@ -300,7 +300,7 @@ echo " "

function fetchenumdrivers3listfromNThost()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithfetchenumdrivers3listfromNThost;
else
echo " "
Expand Down Expand Up @@ -364,7 +364,7 @@ echo -e " \n\

function createdrivernamelist()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithcreatedrivernamelist;
else
echo " ";
Expand Down Expand Up @@ -454,7 +454,7 @@ echo -e " \n\

function createprinterlistwithUNCnames()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithcreateprinterlistwithUNCnames ;
else
[ -d ${nthost} ] || mkdir -p ${nthost};
Expand Down Expand Up @@ -527,7 +527,7 @@ echo -e " \n\

function createmapofprinterstodrivers()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithcreatemapofprinterstodrivers ;
else
echo " "
Expand Down Expand Up @@ -634,7 +634,7 @@ echo -e " \n\

function getdrivernamelist()
{
if stringinstring $@ ; then
if stringinstring help "$@"; then
helpwithgetdrivernamelist ;
else
[ -d ${nthost} ] || mkdir -p ${nthost};
Expand Down Expand Up @@ -695,7 +695,7 @@ echo -e " \n\

function splitenumdrivers3list()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithsplitenumdrivers3list ;
else
echo " "
Expand Down Expand Up @@ -790,7 +790,7 @@ echo -e " \n\

function makesubdirsforWIN40driverlist()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithmakesubdirsforWIN40driverlist ;
else
cat ${nthost}/WIN40/${nthost}-enumdrivers3list-WIN40.txt \
Expand Down Expand Up @@ -819,7 +819,7 @@ fi

function makesubdirsforW32X86driverlist()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithvampiredrivers ;
else
cat ${nthost}/W32X86/${nthost}-enumdrivers3list-NTx86.txt \
Expand Down Expand Up @@ -910,7 +910,7 @@ echo -e " \n\

function splitWIN40fileintoindividualdriverfiles()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithmakesubdirsforWIN40driverlist ;
else
echo " "
Expand Down Expand Up @@ -1057,7 +1057,7 @@ fi

function splitW32X86fileintoindividualdriverfiles()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithmakesubdirsforWIN40driverlist ;
else
echo " "
Expand Down Expand Up @@ -1239,7 +1239,7 @@ echo -e " \n\

function fetchallW32X86driverfiles()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithfetchallW32X86driverfiles ;
else
echo " "
Expand Down Expand Up @@ -1333,7 +1333,7 @@ echo -e " \n\

function uploadallW32X86drivers()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithuploadallW32X86drivers ;
else
echo " "
Expand Down Expand Up @@ -1469,7 +1469,7 @@ echo -e " \n\

function fetchallWIN40driverfiles()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithfetchallWIN40driverfiles ;
else
echo " "
Expand Down Expand Up @@ -1560,7 +1560,7 @@ echo -e " \n\
}
function uploadallWIN40drivers()
{
if stringinstring help $@ ; then
if stringinstring help "$@"; then
helpwithuploadallWIN40drivers ;
else
echo " "
Expand Down

0 comments on commit c3823ff

Please sign in to comment.