From 5bc00f0da395aa4ec779bb802bd78bf893565143 Mon Sep 17 00:00:00 2001 From: Ethan Sommer Date: Wed, 15 Apr 2020 15:36:23 -0400 Subject: single.sh: remove bashisms, change shebang to sh --- scripts/single.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/single.sh b/scripts/single.sh index c40c6bcf..473bbdd4 100755 --- a/scripts/single.sh +++ b/scripts/single.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Build a standalone toybox command @@ -9,7 +9,7 @@ then fi # Add trailing / to PREFIX when it's set but hasn't got one -[ "$PREFIX" == "${PREFIX%/}" ] && PREFIX="${PREFIX:+$PREFIX/}" +[ "$PREFIX" = "${PREFIX%/}" ] && PREFIX="${PREFIX:+$PREFIX/}" # Harvest TOYBOX_* symbols from .config if [ ! -e .config ] @@ -24,7 +24,7 @@ touch -c .config export KCONFIG_CONFIG=.singleconfig for i in "$@" do - echo -n "$i:" + printf '%s:' "$i" TOYFILE="$(egrep -l "TOY[(]($i)[ ,]" toys/*/*.c)" if [ -z "$TOYFILE" ] @@ -37,7 +37,7 @@ do DEPENDS= MPDEL= - if [ "$i" == sh ] + if [ "$i" = sh ] then DEPENDS="$(sed -n 's/USE_\([^(]*\)(NEWTOY([^,]*,.*TOYFLAG_MAYFORK.*/\1/p' toys/*/*.c)" else -- cgit v1.2.3