OSDN Git Service

formatting and commenting
[instantos/instantOS.git] / themes / dracula.sh
index 59f4672..10aa39f 100755 (executable)
@@ -22,9 +22,10 @@ gtkfont "Roboto 10"
 setcursor paper
 
 # rofi setup
-mkdir -p ~/.config/rofi &> /dev/null
-curl -s "https://raw.githubusercontent.com/paperbenni/dotfiles/master/rofi/dracula.rasi" >~/.config/rofi/dracula.rasi
-echo 'rofi.theme: ~/.config/rofi/dracula.rasi' > ~/.config/rofi/config
+mkdir -p ~/.config/rofi &>/dev/null
+[ -e ~/.config/rofi/dracula.rasi ] ||
+    curl -s "https://raw.githubusercontent.com/paperbenni/dotfiles/master/rofi/dracula.rasi" >~/.config/rofi/dracula.rasi
+echo 'rofi.theme: ~/.config/rofi/dracula.rasi' >~/.config/rofi/config
 
 curl -s "https://raw.githubusercontent.com/paperbenni/dotfiles/master/fonts/monaco.sh" | bash
 curl -s "https://raw.githubusercontent.com/paperbenni/dotfiles/master/fonts/roboto.sh" | bash