Wallpaper file now supports comments
This commit is contained in:
parent
0dd701da37
commit
794f7216cd
@ -25,6 +25,9 @@ if type "$configFilePath" > /dev/null; then
|
|||||||
color="black"
|
color="black"
|
||||||
|
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
|
line=`echo $line | sed s/\#.\*$//g`
|
||||||
|
[ -z "$line" ] && continue
|
||||||
|
|
||||||
IFS="=" read key value << EOF
|
IFS="=" read key value << EOF
|
||||||
$line
|
$line
|
||||||
EOF
|
EOF
|
||||||
@ -32,7 +35,7 @@ EOF
|
|||||||
"mode") mode="$value";;
|
"mode") mode="$value";;
|
||||||
"file") file="$value";;
|
"file") file="$value";;
|
||||||
"color") color="$value";;
|
"color") color="$value";;
|
||||||
*) echo "$name: bad key $key in $configFilePath" >&2;;
|
*) echo "$name: bad key $key in $configFilePath" >&2;;
|
||||||
esac
|
esac
|
||||||
done < "$configFilePath"
|
done < "$configFilePath"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user