When I run this script:
#!/bin/sh
if [ `echo $1 | grep "\.\."` ]; then
echo "Elipses (..) not allowed in path."
exit 1
fi
if [ -d /disk??-??/data/cifs ]; then
cifsdir=`ls -d /disk??-??/data/cifs`
elif [ -d /obj?/data/cifs ]; then
cifsdir=`ls -d /obj?/data/cifs`
else
echo "No CIFS cache found."
exit 1
fi
echo Directory: $cifsdir/$1
ls -al $cifsdir/$1
*****************************************************************************************************************************
I get this error:
script execute cifsdirsh.sh
Error: cifsdirsh.sh has a bogus checksum character 'l' (offset 1 from start of l
ast line)
** File cifsdirsh.sh is corrupt or is not a script file **
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Can anyone please help find the error?