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