added website downloader script
This commit is contained in:
		
							
								
								
									
										26
									
								
								src/Shell/download-full-website.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								src/Shell/download-full-website.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # . CONFIG.sh | ||||
|  | ||||
| # set -o xtrace       ## To debug scripts | ||||
| # set -o errexit      ## To exit on error | ||||
| # set -o errunset     ## To exit if a variable is referenced but not set | ||||
|  | ||||
|  | ||||
| function main() { | ||||
|     SCRIPTPATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )" | ||||
|     cd "${SCRIPTPATH}" | ||||
|     echo "Working Dir: " $(pwd) | ||||
|  | ||||
|     wget \ | ||||
|          --recursive \ | ||||
|          --no-clobber \ | ||||
|          --page-requisites \ | ||||
|          --html-extension \ | ||||
|          --convert-links \ | ||||
|          --restrict-file-names=windows \ | ||||
|          --domains schlechtwetterfront.github.io \ | ||||
|          --no-parent \ | ||||
|              "schlechtwetterfront.github.io/ze_filetypes/index.html" | ||||
| } | ||||
| main $@; | ||||
		Reference in New Issue
	
	Block a user