mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
Update 99-run.sh
This commit is contained in:
@@ -75,6 +75,14 @@ function check_path () {
|
|||||||
# Get variable
|
# Get variable
|
||||||
file="$1"
|
file="$1"
|
||||||
|
|
||||||
|
# Double check exists
|
||||||
|
if [ !-f "$file" ]; then
|
||||||
|
bashio::warning "$file not found"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp "$file" "$file2"
|
||||||
|
|
||||||
# Loop through each line of the input file
|
# Loop through each line of the input file
|
||||||
while read line
|
while read line
|
||||||
do
|
do
|
||||||
@@ -97,7 +105,9 @@ function check_path () {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done < "$file"
|
done < "$file2"
|
||||||
|
|
||||||
|
rm "$file2"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user