Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmiland/shell-download
Automatic shell download script
https://github.com/tmiland/shell-download
bash bash-script debian download downloader shell shell-script
Last synced: 24 days ago
JSON representation
Automatic shell download script
- Host: GitHub
- URL: https://github.com/tmiland/shell-download
- Owner: tmiland
- License: mit
- Created: 2022-06-02T10:20:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T12:34:32.000Z (5 months ago)
- Last Synced: 2024-10-30T04:54:24.457Z (2 months ago)
- Topics: bash, bash-script, debian, download, downloader, shell, shell-script
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shell-download
Automatic shell download script
A simple script to download a bash shell script and optionally symlink to `$HOME"/.local/bin`## Download
For main branch
```bash
mkdir $HOME/Downloads/scripts
```
```bash
cd $HOME/Downloads/scripts
```
```bash
wget https://github.com/tmiland/shell-download/raw/main/shell-download.sh
```Set execute permission:
```bash
chmod +x shell-download.sh
```Symlink
```bash
file=shell-download.sh
```
```bash
full_file_path=$(realpath ./"$file")
```
```bash
full_file_name=${file%.*}
```
```bash
sudo ln -s "$full_file_path" "$HOME"/.local/bin/"$full_file_name"
```Now you can run `shell-download `
- This will make installing shell scripts a lot easier.
- You can download any other file and the script should detect if it's a shell script or not.
- It will only set execution permissions (`chmod +x`) on shell scripts.
- You will be asked with [Y/N] wether or not you want to symlink the script.
- If symlinked, name of the script will be used (without the `.sh` part).## Dependencies
`wget`,`curl` or `fetch`
- will be installed if not found: `wget`## Donations
- [PayPal me](https://paypal.me/milandtommy)
- [BTC] : 33mjmoPxqfXnWNsvy8gvMZrrcG3gEa3YDM## Web Hosting
Sign up for web hosting using this link, and receive $100 in credit over 60 days.
[DigitalOcean](https://m.do.co/c/f1f2b475fca0)
#### Disclaimer
*** ***Use at own risk*** ***
### License
[![MIT License Image](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/MIT_logo.svg/220px-MIT_logo.svg.png)](https://github.com/tmiland/shell-download/blob/master/LICENSE)
[MIT License](https://github.com/tmiland/shell-download/blob/master/LICENSE)