From c8263881e00d3d1e61de1021c3f0cac8cf4e9eaf Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 8 Jun 2018 10:11:26 -0600 Subject: [PATCH] fix bash bin by passing all args --- usr/share/install_helper.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index 74fa5b4..ba814dd 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -190,11 +190,9 @@ popd >/dev/null echo " - configuring telebit..." -cat << EOF > $TELEBIT_PATH/bin/$my_app -#!/bin/bash -$my_node $TELEBIT_PATH/bin/$my_bin -EOF -chmod a+x $TELEBIT_PATH/bin/$my_app +echo '#!/bin/bash' > "$TELEBIT_PATH/bin/$my_app" +echo "$my_node $TELEBIT_PATH/bin/$my_bin "'"$@"' >> "$TELEBIT_PATH/bin/$my_app" +chmod a+x "$TELEBIT_PATH/bin/$my_app" # Create uninstall script based on the install script variables cat << EOF > $TELEBIT_PATH/bin/${my_app}_uninstall