fixed logical check in install script
This commit is contained in:
		
							parent
							
								
									fe81df00ee
								
							
						
					
					
						commit
						c59c9a3cc7
					
				
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -1 +1,3 @@
 | 
			
		||||
*.*sw*
 | 
			
		||||
bower_components/
 | 
			
		||||
assets/
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										6
									
								
								install.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										6
									
								
								install.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@ -1,10 +1,12 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
set -e
 | 
			
		||||
set -u
 | 
			
		||||
# git clone git@git.daplie.com:OAuth3/org.oauth3.git /srv/walnut/packages/pages/org.oauth3
 | 
			
		||||
 | 
			
		||||
mkdir -p assets
 | 
			
		||||
if [ -d ./assets/org.oauth3 ]; then
 | 
			
		||||
	git clone git@git.daplie.com:Daplie/oauth3.js.git ./assets/org.oauth3
 | 
			
		||||
if ! [ -d ./assets/org.oauth3 ]; then
 | 
			
		||||
  git clone git@git.daplie.com:Daplie/oauth3.js.git ./assets/org.oauth3
 | 
			
		||||
fi
 | 
			
		||||
pushd ./assets/org.oauth3
 | 
			
		||||
  git checkout v1
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user