mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-14 01:54:49 +00:00
Fix: don't use if/then blocks
This commit is contained in:
parent
14041da67e
commit
61a69ee06f
@ -20,7 +20,7 @@ fi
|
||||
echo "Linking pics directory"
|
||||
[ -e $PWD/htdocs/pics ] || ln -s /var/lib/mympd/pics htdocs/
|
||||
|
||||
[ -d debug ] || mkdir debug
|
||||
install -d debug
|
||||
cd debug
|
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=DEBUG ..
|
||||
make VERBOSE=1
|
||||
|
@ -9,7 +9,10 @@ function minify {
|
||||
DST="$3"
|
||||
ERROR="1"
|
||||
|
||||
[ "$DST" -nt "$SRC" ] && return
|
||||
if [ "$DST" -nt "$SRC" ]
|
||||
then
|
||||
return
|
||||
fi
|
||||
|
||||
if [ "$TYPE" == "html" ]
|
||||
then
|
||||
@ -54,7 +57,7 @@ minify html htdocs/index.html dist/htdocs/index.html
|
||||
minify html htdocs/player.html dist/htdocs/player.html
|
||||
|
||||
echo "Compiling and installing mympd"
|
||||
[ -d release ] || mkdir release
|
||||
install -d release
|
||||
cd release
|
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=RELEASE ..
|
||||
make
|
||||
|
Loading…
Reference in New Issue
Block a user