-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2330
Vidar Holen edited this page May 7, 2024
·
1 revision
#!/bin/busybox sh
if [[ $1 == https:* ]]
then
echo "Using URL $1"
fi
#!/bin/busybox sh
case "$1" in
https:*)
echo "Using URL $1"
;;
esac
You are using [[ .. ]]
in BusyBox sh
to match against a glob pattern. This is supported in Bash and Ksh, but not in BusyBox.
Rewrite the match to use a case
statement instead.
None.
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!