Allow updating themes
This commit is contained in:
parent
b2ab061e3c
commit
d599a98a76
@ -87,8 +87,9 @@ show_install_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_update_menu() {
|
show_update_menu() {
|
||||||
case $(menu "Update" " Omarchy ($OMARCHY_VERSION)\n Timezone") in
|
case $(menu "Update" " Omarchy ($OMARCHY_VERSION)\n Themes\n Timezone") in
|
||||||
*Omarchy*) terminal $OMARCHY_BIN_PATH/omarchy-update ;;
|
*Omarchy*) terminal $OMARCHY_BIN_PATH/omarchy-update ;;
|
||||||
|
*Themes*) terminal $OMARCHY_BIN_PATH/omarchy-theme-update ;;
|
||||||
*Timezone*) $OMARCHY_BIN_PATH/omarchy-cmd-tzupdate ;;
|
*Timezone*) $OMARCHY_BIN_PATH/omarchy-cmd-tzupdate ;;
|
||||||
*) show_main_menu ;;
|
*) show_main_menu ;;
|
||||||
esac
|
esac
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Show logo
|
||||||
|
clear
|
||||||
|
cat <~/.local/share/omarchy/logo.txt
|
||||||
|
|
||||||
for dir in ~/.config/omarchy/themes/*/; do
|
for dir in ~/.config/omarchy/themes/*/; do
|
||||||
[ -d "$dir" ] && [ ! -L "${dir%/}" ] && echo "Updating: $(basename "$dir")" && git -C "$dir" pull
|
[ -d "$dir" ] && [ ! -L "${dir%/}" ] && echo "Updating: $(basename "$dir")" && git -C "$dir" pull
|
||||||
done
|
done
|
||||||
|
|
||||||
|
gum spin --spinner "globe" --title "Done!" -- sleep 2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user