On 19.12.2009 16:48, Sergey Dorofeev wrote:
> #!/bin/sh
>
> IFACE=$1
> if [ "$2" == "up" ]
^^
This is bashism.
Please, use "=" if you looking for portability.
> then
> INS=-I
> ADD=-A
> else
> INS=-D
> ADD=-D
> fi
>
> workaround: use bash
True :)
--
Rgrds, legion
-
Package: dash
Version: 0.5.5.1-3
Severity: normal
so simple scripts stopped working after update to dash
#!/bin/sh
IFACE=$1
if [ "$2" == "up" ]
then
INS=-I
ADD=-A
else
INS=-D
ADD=-D
fi
workaround: use bash
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT
2 matches
Mail list logo