mirror of
https://github.com/SuperBFG7/ympd
synced 2025-06-08 01:14:10 +00:00
fix: pull request #25, put $LIBRARY in quotation marks
This commit is contained in:
parent
d19dfc05f9
commit
ef3d8be28b
@ -54,7 +54,7 @@ echo "Trying to link musicdir to library"
|
|||||||
if [ -f /etc/mpd.conf ]
|
if [ -f /etc/mpd.conf ]
|
||||||
then
|
then
|
||||||
LIBRARY=$(grep music /etc/mpd.conf | awk {'print $2'} | sed -e 's/"//g')
|
LIBRARY=$(grep music /etc/mpd.conf | awk {'print $2'} | sed -e 's/"//g')
|
||||||
[ "$LIBRARY" != "" ] && [ ! -e /usr/share/mympd/htdocs/library ] && ln -s $LIBRARY /usr/share/mympd/htdocs/library
|
[ "$LIBRARY" != "" ] && [ ! -e /usr/share/mympd/htdocs/library ] && ln -s "$LIBRARY" /usr/share/mympd/htdocs/library
|
||||||
else
|
else
|
||||||
echo "/etc/mpd.conf not found, you must link your musicdir manually to /usr/share/mympd/htdocs/library"
|
echo "/etc/mpd.conf not found, you must link your musicdir manually to /usr/share/mympd/htdocs/library"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user