mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	docs: Get rid of domain in output folder
This commit is contained in:
		
							parent
							
								
									30c1810211
								
							
						
					
					
						commit
						621cc4a065
					
				@ -1 +1,4 @@
 | 
			
		||||
SHARE_PROTOCOL=https
 | 
			
		||||
SHARE_HOST=notes.eliandoran.me
 | 
			
		||||
ROOT_NOTE_ID=4yYHqKbLovVX
 | 
			
		||||
SHARE_URL=https://notes.eliandoran.me/share/4yYHqKbLovVX
 | 
			
		||||
@ -8,4 +8,11 @@ rm -rf "$output_dir"
 | 
			
		||||
mkdir -p "$output_dir"
 | 
			
		||||
 | 
			
		||||
source ./.env
 | 
			
		||||
wget -rp -e robots=off "$SHARE_URL" -P "$output_dir"
 | 
			
		||||
 | 
			
		||||
# Download everything in output/notes.example.com/share/...
 | 
			
		||||
share_url="$SHARE_PROTOCOL://$SHARE_HOST/share/$ROOT_NOTE_ID"
 | 
			
		||||
wget -rp -e robots=off "$share_url" -P "$output_dir"
 | 
			
		||||
 | 
			
		||||
# Get rid of the domain in the output folder
 | 
			
		||||
mv "$output_dir/$SHARE_HOST"/* "$output_dir/"
 | 
			
		||||
rmdir "$output_dir/$SHARE_HOST"
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user