Add testserver command - quickly start a test server
This will help encourage testing with some widely used plugins to help identify issues caused by changes before they are pushed.
This commit is contained in:
parent
e50e705520
commit
7079bd6244
4 changed files with 145 additions and 9 deletions
22
scripts/functions.sh
Executable file
22
scripts/functions.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
color() {
|
||||
if [ $2 ]; then
|
||||
echo -e "\e[$1;$2m"
|
||||
else
|
||||
echo -e "\e[$1m"
|
||||
fi
|
||||
}
|
||||
colorend() {
|
||||
echo -e "\e[m"
|
||||
}
|
||||
|
||||
paperstash() {
|
||||
STASHED=$(git stash 2>/dev/null|| return 0) # errors are ok
|
||||
}
|
||||
|
||||
paperunstash() {
|
||||
if [[ "$STASHED" != "No local changes to save" ]] ; then
|
||||
git stash pop 2>/dev/null|| return 0 # errors are ok
|
||||
fi
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue