Add files via upload

This commit is contained in:
kittenlikeasmallcat 2023-03-07 18:40:17 -08:00 committed by GitHub
parent 7c8cb0ff8e
commit fef635407d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 75 additions and 0 deletions

75
phases Normal file
View File

@ -0,0 +1,75 @@
#!/bin/sh
#     
#     
pyphoon -n 4 | tr -d '\n@' | tr -d [:blank:] > ~/.pymoon &&
##FULL
if
grep -q 'FullMoon+[0]\|fullMoon-[0]' ~/.pymoon
then echo '' > ~/.phase.tmp
##Crescents
elif
grep -q 'NewMoon+[12]' ~/.pymoon
then echo '' > ~/.phase.tmp
elif
grep -q 'NewMoon+[0]\|NewMoon-[0]' ~/.pymoon
then echo '' > ~/.phase.tmp
elif
grep -q 'LastQuarter+[5678]' ~/.pymoon
then echo '' > ~/.phase.tmp
elif
grep -q 'NewMoon+[345]' ~/.pymoon
then echo '' > ~/.phase.tmp
elif
grep -q 'NewMoon+[678]' ~/.pymoon
then echo '' > ~/.phase.tmp
elif
grep -q 'FirstQuarter+[01]' ~/.pymoon
then echo '' > ~/.phase.tmp
elif
grep -q 'FirstQuarter+[23]' ~/.pymoon
then echo '' > ~/.phase.tmp
elif
grep -q 'FirstQuarter+[345678]' ~/.pymoon
then echo '' > ~/.phase.tmp
#WANING
elif
grep -q 'FullMoon+[123]' ~/.pymoon
then echo '' > ~/.phase.tmp #good
elif
grep -q 'FullMoon+[456]' ~/.pymoon
then echo '' > ~/.phase.tmp
elif
grep -q 'FullMoon+[78]' ~/.pymoon
then echo '' > ~/.phase.tmp
elif
grep -q 'LastQuarter+[01]' ~/.pymoon
then echo '' > ~/.phase.tmp
elif
grep -q 'LastQuarter+[234]' ~/.pymoon
then echo '' > ~/.phase.tmp
# elif
# grep -q 'LastQuarter+[45678]' ~/.pymoon
# then echo '' > ~/.phase.tmp
# ERROR
else echo 'E' > ~/.phase.tmp ;
fi #&&
bat -p ~/.phase.tmp