Usage:
-
Save this script to
gen-password.shfile -
Make it executable:
chmod +x ./gen-password.sh
| ex() { | |
| if [ -z "$1" ] ; then | |
| echo >&2 'File not specified' | |
| return 1 | |
| fi | |
| if [ ! -f "$1" ] ; then | |
| echo >&2 "'$1' is not a valid file" | |
| return 1 | |
| fi |
Usage:
Save this script to gen-password.sh file
Make it executable:
chmod +x ./gen-password.sh
| #!/bin/bash | |
| set -eufo pipefail | |
| if [ -z "$1" ]; then | |
| echo "Storage Account Name not set..." | |
| exit 1 | |
| fi | |
| if [ -z "$2" ]; then |
| function assign() { | |
| unset -v "$1" || echo "Invalid identifier: $1" >&2 | |
| printf -v "$1" '%s' "$2" | |
| } | |
| function getHelloWorld() { | |
| # Return the value "Hello World!" | |
| local "$1" && assign "$1" "Hello World!" | |
| } |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo "Profile is not specified!" | |
| exit 1 | |
| fi | |
| sudo pacman -S --noconfirm git | |
| git clone https://github.com/hypnoglow/manjaro-bootstrap ${HOME}/sources/hypnoglow/manjaro-bootstrap |
I hereby claim:
To claim this, I am signing this object:
| #!/bin.bash | |
| if [ -x "$(which dotbro 2>/dev/null)" ] ; then | |
| echo "Dotbro is already installed." | |
| exit 0 | |
| fi | |
| if [ ! -x "$(which go 2>/dev/null)" ] ; then | |
| echo "Golang is not installed." | |
| echo "Downloading precompiled dotbro..." |
| lint_it() { | |
| changed_js_files=$( git diff --name-only HEAD | grep -E '(.js)$' ) | |
| if [ -z "${changed_js_files}" ] ; then | |
| return 0 | |
| fi | |
| eslint ${changed_js_files} | |
| return $? | |
| } | |
| lint_it |