Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
23 Zeilen
396 B
Bash
23 Zeilen
396 B
Bash
|
#!/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
|
||
|
}
|