This commit is contained in:
Shihaam Abdul Rahman 2023-11-14 01:03:20 +05:00
parent c6e4b5c26a
commit c35dfac2db
Signed by: shihaam
GPG Key ID: 1D33DF08702F2A9C
2 changed files with 0 additions and 34 deletions

25
day.sh
View File

@ -1,25 +0,0 @@
#!/bin/bash
weather_condition=1
is_day=1
#swap_emoji(){
#if [ "$is_day" = "1" ]
#then
# echo "☀️ "
#else
# echo "🌙"
#fi
#}
#swap_emoji() { [ "$is_day" = "1" ] && echo "☀️" || echo "🌙"; }
case $weather_condition in
0) current_weather="$([ "$is_day" = "1" ] && echo "☀️" || echo "🌙") Clear Sky";;
1) current_weather="$([ "$is_day" = "1" ] && echo "☀️" || echo "🌙") Mainly Clear";;
2) current_weather="⛅ Partly Cloudy" ;;
3) current_weather="☁️ Overcast" ;;
45) current_weather="🌫️ Fog" ;;
99) current_weather="⛈️🌨️ Thunderstorm with Heavy Hail" ;;
*) current_weather="🌐 Weather Condition Not Recognized" ;;
esac
echo $current_weather

9
var.sh
View File

@ -1,9 +0,0 @@
var(){
echo var
}
bruh="$(var) bruh"
echo $bruh