https://github.com/tobiasbu/useful-sh
My useful 'copy-paste' Shell scripts to help making automated tasks
https://github.com/tobiasbu/useful-sh
automated bash-script shell shell-script
Last synced: 3 months ago
JSON representation
My useful 'copy-paste' Shell scripts to help making automated tasks
- Host: GitHub
- URL: https://github.com/tobiasbu/useful-sh
- Owner: tobiasbu
- License: unlicense
- Created: 2022-06-28T14:46:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-23T00:38:52.000Z (almost 3 years ago)
- Last Synced: 2023-07-23T01:26:06.923Z (almost 3 years ago)
- Topics: automated, bash-script, shell, shell-script
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# useful-sh
My useful Shell scripts to help making automated tasks
## Instructions
There are two kinds of scripts:
- command-like: works like a comand-line tool
- helpers scripts: utilities to be imported in your own Bash scripts
### Using helpers scripts
- Copy the desired files to your project
- Then in your script import it:
```sh
#!/bin/bash
source "helpers/logger.sh"
source "helpers/git-utils.sh"
# Or you want to use absolute paths:
# Get current directory
SCRIPT_DIR_NAME=`dirname "$0"`
source "$SCRIPT_DIR_NAME/helpers/logger.sh"
source "$SCRIPT_DIR_NAME/helpers/git-utils.sh"
```