Changeset 9ecaaad in freewrt


Ignore:
Timestamp:
Jul 3, 2007, 12:38:47 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
8cb7750
Parents:
3e86bb0
Message:

make sure the wrapper works on systems that don't have /bin/sh with [[

git-svn-id: svn://www.freewrt.org/trunk/freewrt@3100 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/scan-tools.sh

    r3e86bb0 r9ecaaad  
    450450        cat >$topdir/lbin/mkshw <<-EOF
    451451                #!/bin/sh
    452                 if [[ -x $topdir/lbin/mksh ]]; then
    453                         exec $topdir/lbin/mksh "\$@"
     452                if test -e '$topdir/lbin/mksh'; then
     453                        exec '$topdir/lbin/mksh' "\$@"
    454454                else
    455                         exec bash "\$@"
     455                        exec '$BASH' "\$@"
    456456                fi
    457457        EOF
Note: See TracChangeset for help on using the changeset viewer.