From ee5e0b9e35a29fa9242ab3b488dcd4e42eb12eb2 Mon Sep 17 00:00:00 2001 From: askiiart Date: Sun, 8 Dec 2024 20:22:31 -0600 Subject: [PATCH] disable waybar backup/restore on fedora temporarily --- backup.sh | 8 +++++--- restore.sh | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/backup.sh b/backup.sh index d0519a8..edde271 100755 --- a/backup.sh +++ b/backup.sh @@ -93,9 +93,11 @@ mkdir $GIT_DIR/fontconfig cp -r $HOME/.config/fontconfig/conf.d/* $GIT_DIR/fontconfig/ # waybar -rm -rf $GIT_DIR/waybar/ -mkdir $GIT_DIR/waybar/ -cp -r $HOME/.config/waybar/* $GIT_DIR/waybar/ +if ! command_exists "dnf"; then + rm -rf $GIT_DIR/waybar/ + mkdir $GIT_DIR/waybar/ + cp -r $HOME/.config/waybar/* $GIT_DIR/waybar/ +fi # sway runner # TODO: make this work on nix stuff diff --git a/restore.sh b/restore.sh index 4f4256b..08abdb7 100755 --- a/restore.sh +++ b/restore.sh @@ -83,9 +83,11 @@ mkdir -p $HOME/.config/fontconfig/conf.d/ cp -r $GIT_DIR/fontconfig/* $HOME/.config/fontconfig/conf.d/ # waybar -rm -rf $HOME/.config/waybar/ -mkdir $HOME/.config/waybar/ -cp -r $GIT_DIR/waybar/* $HOME/.config/waybar/ +if ! command_exists "dnf"; then + rm -rf $HOME/.config/waybar/ + mkdir $HOME/.config/waybar/ + cp -r $GIT_DIR/waybar/* $HOME/.config/waybar/ +fi # sway-runner # TODO: make this work on nix too