error in create_update_source.sh + fix
![](https://seccdn.libravatar.org/avatar/6cc2360e324b472df8ba16e7a303e2c0.jpg?s=120&d=mm&r=g)
Please fix it: in create_update_source.sh line 101 use if ! [[ "$VALUE" -eq "SHA1" ]]; then instead of if ! [[ "$VALUE" =~ "SHA1" ]]; then Operator =~ is used in Perl, not in shell. After this fix is create_update_source.sh working. Best regards. Stan
![](https://seccdn.libravatar.org/avatar/43d28c61e1e0659972b2e139c34792d5.jpg?s=120&d=mm&r=g)
On Monday 04 September 2006 18:02, Stan Novogroudski wrote:
in create_update_source.sh line 101
if ! [[ "$VALUE" -eq "SHA1" ]]; then
instead of
if ! [[ "$VALUE" =~ "SHA1" ]]; then
Operator =~ is used in Perl, not in shell.
ug@taylor:~> VALUE="UWE"; if [[ "$VALUE" =~ "WE" ]]; then echo "jo"; fi jo ug@taylor:~> but you are right, that does not work on SLES9 -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany Business: http://www.suse.de/~ug now playing Agonoize - Open The Gate
![](https://seccdn.libravatar.org/avatar/156a905f488694997d41206aa3382cec.jpg?s=120&d=mm&r=g)
On Tue, Sep 05, 2006 at 10:44:45AM +0200, Uwe Gansert wrote:
ug@taylor:~> VALUE="UWE"; if [[ "$VALUE" =~ "WE" ]]; then echo "jo"; fi jo ug@taylor:~>
but you are right, that does not work on SLES9
Something added to bash 3.x? SLES9 still in the 2.05b range.. SLES10 has 3.1. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com "I've never used their tech support, but the word is that it sucks." I believe it's composed entirely of monkeys that couldn't get the Shakespeare gig. :-) ==> /. users talking about @home tech support
participants (3)
-
Mike Marion
-
Stan Novogroudski
-
Uwe Gansert