Continua a receber erros de menu no erro de sintaxe do script de shell: “(” ”

0

Eu não consigo descobrir o que estou fazendo errado aqui. Eu continuo recebendo um erro de volta na parte do menu.

#!/bin/bash
#streambox.sh 

echo "before we do anything-- we need to install some dependiencies"
wait 10000
clear
echo "go make a cup of coffee: depending on your internet connection this 
might take awhile."
sudo apt-get update
sudo apt-get dist-upgrade
sudo bash -c 'printf "deb http://archive.itimmer.nl/raspbian/moonlight 
jessie main\n" >> /etc/apt/sources.list'
sudo apt-get update

sudo apt-get install moonlight-embedded

HEIGHT=15
WIDTH=40
CHOICE_HEIGHT=4
BACKTITLE="Streambox - Ultimate Raspberry Pi Media Center"
TITLE="Streambox"
MENU="What do you want to do?"

OPTIONS=(1 "Steam"
     2 "Kodi"
     3 "Geforce Now")

CHOICE=$(dialog --clear \
            --backtitle "$BACKTITLE" \
            --title "$TITLE" \
            --menu "$MENU" \
            $HEIGHT $WIDTH $CHOICE_HEIGHT \
            "${OPTIONS[@]}" \
            2>&1 >/dev/tty)

clear
case $CHOICE in
    1)
        echo "YOU CHOSE: steam"
        echo "what is your computer's IP address"
        read varname
        moonlight pair $varname
        moonlight stream -1080 -30fps -app Steam
        ;;
    2)
        echo "You chose KODI"
        kodi
        ;;
    3)
        echo "YOU CHOSE: Geforce Now"
        echo "what is your computer's IP address"
        read varname
        moonlight pair $varname
        moonlight stream -1080 -60fps -app NVIDIA GeForce Now
        ;;
esac

e eu recebo isso de volta nos meus testes

syntax error: "(" unexpected 

por favor ajude.

    
por sk1pp3r 23.02.2018 / 19:04

0 respostas