mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-26 01:43:37 +01:00
Renamed to download.ps1
This commit is contained in:
parent
a05cbc54e5
commit
9d71c51c6f
@ -5,6 +5,7 @@ Useful cross-platform PowerShell scripts, to be used on the command-line (CLI) o
|
|||||||
|
|
||||||
PowerShell Scripts Included
|
PowerShell Scripts Included
|
||||||
---------------------------
|
---------------------------
|
||||||
|
* [download.ps1](Scripts/download.ps1) - downloads the file/directory from the given URL
|
||||||
* [exe_info.ps1](Scripts/exe_info.ps1) - prints basic information of the given executable file
|
* [exe_info.ps1](Scripts/exe_info.ps1) - prints basic information of the given executable file
|
||||||
* [lscmdlets.ps1](Scripts/lscmdlets.ps1) - lists all PowerShell cmdlets
|
* [lscmdlets.ps1](Scripts/lscmdlets.ps1) - lists all PowerShell cmdlets
|
||||||
* [lsmods.ps1](Scripts/lsmods.ps1) - lists all PowerShell modules
|
* [lsmods.ps1](Scripts/lsmods.ps1) - lists all PowerShell modules
|
||||||
|
11
Scripts/download.ps1
Executable file
11
Scripts/download.ps1
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/snap/bin/powershell
|
||||||
|
#
|
||||||
|
# Syntax: ./download.ps1 <URL>
|
||||||
|
# Description: downloads the file/directory from the given URL
|
||||||
|
# Author: Markus Fleschutz
|
||||||
|
# Source: github.com/fleschutz/PowerShell
|
||||||
|
# License: CC0
|
||||||
|
|
||||||
|
param([string]$URL)
|
||||||
|
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent $URL --directory-prefix . --no-verbose
|
||||||
|
exit 0
|
@ -1,16 +0,0 @@
|
|||||||
#!/snap/bin/powershell
|
|
||||||
#
|
|
||||||
# Syntax: ./download_homepage.ps1
|
|
||||||
# Description: downloads from the given URL
|
|
||||||
# Author: Markus Fleschutz
|
|
||||||
# Source: github.com/fleschutz/PowerShell
|
|
||||||
# License: CC0
|
|
||||||
|
|
||||||
backup()
|
|
||||||
{
|
|
||||||
URL=$1
|
|
||||||
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent $URL --directory-prefix . --no-verbose
|
|
||||||
}
|
|
||||||
|
|
||||||
backup $1
|
|
||||||
exit 0
|
|
Loading…
Reference in New Issue
Block a user