[OpenWrt-Devel] [PATCH 13/17] gen_rpi_sdcard_img.sh: Use /bin/sh
Rosen Penev
rosenp at gmail.com
Mon Nov 25 17:44:58 EST 2019
Nothing here needs bash.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
target/linux/brcm2708/image/gen_rpi_sdcard_img.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/brcm2708/image/gen_rpi_sdcard_img.sh b/target/linux/brcm2708/image/gen_rpi_sdcard_img.sh
index 60b66c3724..5e8fb2769c 100755
--- a/target/linux/brcm2708/image/gen_rpi_sdcard_img.sh
+++ b/target/linux/brcm2708/image/gen_rpi_sdcard_img.sh
@@ -1,6 +1,6 @@
-#!/usr/bin/env bash
+#!/bin/sh
-set -x
+set -x
[ $# -eq 5 ] || {
echo "SYNTAX: $0 <file> <bootfs image> <rootfs image> <bootfs size> <rootfs size>"
exit 1
--
2.23.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list