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