refactor(wip): fix some stuff in update script

This commit is contained in:
matt1432 2023-12-03 21:35:30 -05:00
parent 699666bf48
commit 89e9df4ad1

View file

@ -8,12 +8,7 @@ parseNurl() {
sed -i "s,hash = .*,hash = $HASH;," "$2" sed -i "s,hash = .*,hash = $HASH;," "$2"
} }
updateVencord() {
parseNurl https://github.com/Vendicated/Vencord /home/matt/.nix/common/overlays/vencord.nix
}
# TODO # TODO
#parseNurl "https://github.com/lukas-reineke/indent-blankline.nvim"
# https://github.com/dracula/xresources # https://github.com/dracula/xresources
# https://github.com/dracula/plymouth # https://github.com/dracula/plymouth
@ -26,7 +21,7 @@ updateVencord() {
updateFirefoxAddons() { updateFirefoxAddons() {
echo "Updating firefox addons using mozilla-addons-to-nix" echo "Updating firefox addons using mozilla-addons-to-nix"
(cd /home/matt/.nix/modules/firefox/addons || return; (cd /home/matt/.nix/home/firefox/addons || return;
file=generated-firefox-addons.nix file=generated-firefox-addons.nix
if [[ -f $file ]]; then if [[ -f $file ]]; then
@ -47,5 +42,6 @@ doAll() {
} }
[[ "$1" == "-a" || "$1" == "--all" ]] && doAll [[ "$1" == "-a" || "$1" == "--all" ]] && doAll
[[ "$1" == "-v" || "$1" == "--vencord" ]] && updateVencord
[[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons [[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons
alejandra /home/matt/.nix