[elbe-devel] [PATCH 8/8] mako toolchain-shar-extract.sh.mako: fix /dev/null` not writable error

Torben Hohn torben.hohn at linutronix.de
Tue May 14 14:29:04 CEST 2019


sdk setup script reports the following error:

./setup-elbe-sdk-arm-linux-gnueabihf-project-target-1.0.sh: 219: ./setup-elbe-sdk-arm-linux-gnueabihf-project-target-1.0.sh: cannot create /dev/null`: Permission denied

dont use backticks, just do, what SUDO_EXEC does.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/makofiles/toolchain-shar-extract.sh.mako | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/makofiles/toolchain-shar-extract.sh.mako b/elbepack/makofiles/toolchain-shar-extract.sh.mako
index 01a4dfaac..a56d1ae8c 100644
--- a/elbepack/makofiles/toolchain-shar-extract.sh.mako
+++ b/elbepack/makofiles/toolchain-shar-extract.sh.mako
@@ -246,7 +246,7 @@ if [ ! -x $target_sdk_dir -o ! -w $target_sdk_dir -o ! -r $target_sdk_dir ]; the
 	$SUDO_EXEC mkdir -p $target_sdk_dir >/dev/null 2>&1
 fi
 
-FILECMD=\`which file 2>/dev/null\`
+FILECMD=$(which "file")
 
 if [ x\$FILECMD = "x"  ]; then
         echo "file command not found."
-- 
2.11.0




More information about the elbe-devel mailing list