Updates
This commit is contained in:
parent
68436e2b26
commit
d82c423eb9
@ -13,7 +13,6 @@
|
||||
sleep 1
|
||||
clear
|
||||
figlet "Updates"
|
||||
EOF
|
||||
|
||||
_isInstalledYay() {
|
||||
package="$1";
|
||||
|
@ -5,7 +5,7 @@
|
||||
# | | | | | | __/ | | | | | __/\__ \\ V V /| | || (__| | | | __/ |
|
||||
# |_| |_| |_|\___|_| |_| |_|\___||___/ \_/\_/ |_|\__\___|_| |_|\___|_|
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
# by Stephan Raabe (2024)
|
||||
# -----------------------------------------------------
|
||||
|
||||
# -----------------------------------------------------
|
||||
@ -25,16 +25,18 @@ listNames=""
|
||||
options=$(find $themes_path -maxdepth 2 -type d)
|
||||
for value in $options
|
||||
do
|
||||
if [ ! $value == "$themes_path" ]; then
|
||||
if [ $(find $value -maxdepth 1 -type d | wc -l) = 1 ]; then
|
||||
result=$(echo $value | sed "s#$HOME/dotfiles/waybar/themes/#/#g")
|
||||
IFS='/' read -ra arrThemes <<< "$result"
|
||||
listThemes[${#listThemes[@]}]="/${arrThemes[1]};$result"
|
||||
if [ -f $themes_path$result/config.sh ]; then
|
||||
source $themes_path$result/config.sh
|
||||
listNames+="$theme_name\n"
|
||||
else
|
||||
listNames+="/${arrThemes[1]};$result\n"
|
||||
if [ ! $value == "$HOME/dotfiles/waybar/themes/assets" ]; then
|
||||
if [ ! $value == "$themes_path" ]; then
|
||||
if [ $(find $value -maxdepth 1 -type d | wc -l) = 1 ]; then
|
||||
result=$(echo $value | sed "s#$HOME/dotfiles/waybar/themes/#/#g")
|
||||
IFS='/' read -ra arrThemes <<< "$result"
|
||||
listThemes[${#listThemes[@]}]="/${arrThemes[1]};$result"
|
||||
if [ -f $themes_path$result/config.sh ]; then
|
||||
source $themes_path$result/config.sh
|
||||
listNames+="$theme_name\n"
|
||||
else
|
||||
listNames+="/${arrThemes[1]};$result\n"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user