Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/longhao-chen/nofail
Run the shell command until successful.
https://github.com/longhao-chen/nofail
Last synced: about 1 month ago
JSON representation
Run the shell command until successful.
- Host: GitHub
- URL: https://github.com/longhao-chen/nofail
- Owner: Longhao-Chen
- License: mit
- Created: 2021-08-01T15:07:47.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-05T16:23:11.000Z (over 3 years ago)
- Last Synced: 2024-11-19T19:03:36.046Z (about 2 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# nofail
Run the shell command until successful.# Manual installation:
The preferred way of installation is to simply add the nofail script somewhere into your path (e.g. add the directory to your PATH environment or copy nofail into an existing included path like /usr/local/bin).# Install via NPM:
```
npm install --global shell-nofail
```# Usage
```
nofail [-h] [-?] [-s sleep] [-r max_retry] shell_command
[-h] show this help
[-?] show this help
[-s sleep] Command failure retry interval. Default: 1
[-r max_retry] Maximum number of retries. 0 is infinite retry. Default: 0
```# Configuration completion
1. Install `bash-completion`
```
sudo apt install bash-completion
```2. Modify profile
```
echo "complete -F _command nofail" >> ~/.bashrc
```3. Use new configuration
```
source ~/.bashrc
```# License
Copyright Longhao.Chen. Licensed under MIT.