forked from jason/cpolis
		
	Fixed echo commands
This commit is contained in:
		@@ -26,14 +26,14 @@ check_dependency jq
 | 
				
			|||||||
check_dependency tar
 | 
					check_dependency tar
 | 
				
			||||||
check_dependency xargs
 | 
					check_dependency xargs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo -e '\nDownloading cpolis...' >&2
 | 
					echo '\nDownloading cpolis...' >&2
 | 
				
			||||||
rm -fr $CPOLIS_DIR/*
 | 
					rm -fr $CPOLIS_DIR/*
 | 
				
			||||||
latest_release=$(curl -s $CPOLIS_REPO_URL | jq -r '.[0].tag_name')
 | 
					latest_release=$(curl -s $CPOLIS_REPO_URL | jq -r '.[0].tag_name')
 | 
				
			||||||
curl -Lo $TMP_DIR/cpolis.tar.gz https://git.streifling.com/jason/cpolis/archive/$latest_release.tar.gz
 | 
					curl -Lo $TMP_DIR/cpolis.tar.gz https://git.streifling.com/jason/cpolis/archive/$latest_release.tar.gz
 | 
				
			||||||
tar -xzf $TMP_DIR/cpolis.tar.gz -C $EXTRACTION_DIR
 | 
					tar -xzf $TMP_DIR/cpolis.tar.gz -C $EXTRACTION_DIR
 | 
				
			||||||
rm $TMP_DIR/cpolis.tar.gz
 | 
					rm $TMP_DIR/cpolis.tar.gz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo -e '\nDownloading TailwindCSS...' >&2
 | 
					echo '\nDownloading TailwindCSS...' >&2
 | 
				
			||||||
curl -s $TAILWINDCSS_REPO_URL |
 | 
					curl -s $TAILWINDCSS_REPO_URL |
 | 
				
			||||||
    grep -F browser_download_url |
 | 
					    grep -F browser_download_url |
 | 
				
			||||||
    grep -F linux-x64 |
 | 
					    grep -F linux-x64 |
 | 
				
			||||||
@@ -42,10 +42,10 @@ curl -s $TAILWINDCSS_REPO_URL |
 | 
				
			|||||||
chmod +x $CPOLIS_DIR/tailwindcss
 | 
					chmod +x $CPOLIS_DIR/tailwindcss
 | 
				
			||||||
$CPOLIS_DIR/tailwindcss -i $CPOLIS_DIR/web/static/css/input.css -o $CPOLIS_DIR/web/static/css/style.css
 | 
					$CPOLIS_DIR/tailwindcss -i $CPOLIS_DIR/web/static/css/input.css -o $CPOLIS_DIR/web/static/css/style.css
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo -e 'Building cpolis...' >&2
 | 
					echo '\nBuilding cpolis...' >&2
 | 
				
			||||||
go build -o $TMP_DIR/cpolis $CPOLIS_DIR/cmd/main.go
 | 
					go build -o $TMP_DIR/cpolis $CPOLIS_DIR/cmd/main.go
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo -e 'Setting system files up...' >&2
 | 
					echo '\nSetting system files up...' >&2
 | 
				
			||||||
sudo mv $TMP_DIR/cpolis $BIN_DIR/cpolis
 | 
					sudo mv $TMP_DIR/cpolis $BIN_DIR/cpolis
 | 
				
			||||||
sudo chown root:root $BIN_DIR/cpolis
 | 
					sudo chown root:root $BIN_DIR/cpolis
 | 
				
			||||||
chmod +x $BIN_DIR/cpolis
 | 
					chmod +x $BIN_DIR/cpolis
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user