Update powerwall.sh
This commit is contained in:
@@ -596,8 +596,7 @@ CHECKPOWER(){
|
|||||||
|
|
||||||
until [ "${checked}" != "" ]; do
|
until [ "${checked}" != "" ]; do
|
||||||
for hostfile in ${PW_TMPFOLDER}/*.hostpower; do
|
for hostfile in ${PW_TMPFOLDER}/*.hostpower; do
|
||||||
echo "HERE: $hostfile"
|
if [ -f ${hostfile} ] && [ "${hostfile}" != "${PW_TMPFOLDER}/*.hostpower" ]; then
|
||||||
if [ -f ${hostfile} ] && [ "${hostfile}" != ${PW_TMPFOLDER}/*.hostpower ]; then
|
|
||||||
host=${hostfile%.*}; host=${host##*/}
|
host=${hostfile%.*}; host=${host##*/}
|
||||||
if [ "${host}" != "*" ]; then
|
if [ "${host}" != "*" ]; then
|
||||||
watts=$(cat ${hostfile})
|
watts=$(cat ${hostfile})
|
||||||
|
|||||||
Reference in New Issue
Block a user