darth-hp / yeelight-shell-scripts

Control Xiaomi Mi Yeelight (RGB) with bash scripts
Apache License 2.0
130 stars 23 forks source link

Syntax error: "(" unexpected #1

Closed dopiks closed 6 years ago

dopiks commented 6 years ago

./yeelight-scene.sh 0 On ./yeelight.sh: 3: ./yeelight.sh: Syntax error: "(" unexpected

#!/bin/sh declare -a ID=(192.168.1.29 192.168.1.80)

dopiks commented 6 years ago

sh is not bash )

darth-hp commented 6 years ago

You are right. bash is default for me. Don't know if zsh or ksh can't handle this also

darth-hp commented 6 years ago

fixed