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

warnings about the shell



Dear Lintian Maintainers,

I was making my script but lintian(2.3.2) said me:

W: bygfoot: possible-bashism-in-maintainer-script preinst:7 '${MIARRAY[*]}'

According [0] it is this right.
My script is attach. Please could you explain me.

[0] http://docs.hp.com/en/B2355-90046/ch21s07.html

Thank you.

Elías Alejandro

-----------------------my-script------------------------------
#!/bin/sh
set -e
FECHA=$(date +"%Y%m%d.%H:%M:%S")
MIARRAY=($(find /home -name .bygfoot -printf "%p "))
if [ ${MIARRAY} ]
then
        for i in ${MIARRAY[*]}
        do
                mv $i $i.$FECHA
        done
fi

#DEBHELPER#
exit 0

-----------------------------------------------


Reply to: