This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
functionName() { | |
} | |
PS3='Please select an option: ' | |
options=("Reset database and keys (clean install)" "Reinstall all composer dependencies" "Both" "Quit") | |
select opt in "${options[@]}" | |
do | |
case $opt in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------------------------- | |
# System aliases. | |
# --------------------------------------------------------------------------- | |
# | |
# Color support. | |
if [ -x /usr/bin/dircolors ]; then | |
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
alias ls='ls --color=auto' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if a directory has been supplied. | |
if [ -z "$1" ]; then | |
echo "You must supply a directory." | |
exit 0 | |
# Check directory exists. | |
elif [ ! -d "$1" ]; then | |
echo "That directory does not exist." | |
exit 0 |
OlderNewer