summarylogtreecommitdiffstats
path: root/compile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/compile.sh b/compile.sh
index 29f02813921c..407e7e1f21f3 100755
--- a/compile.sh
+++ b/compile.sh
@@ -1,10 +1,8 @@
#!/bin/sh
-rm -rf src/
+[[ -d "src" ]] && rm -rf src/
[[ -f "config.def.h" ]] && rm config.def.h
[[ "$(hostname)" == "uh-x200s" ]] && cp config.def.h.x200s config.def.h
[[ "$(hostname)" == "uh-x230" ]] && cp config.def.h.x230 config.def.h
-[[ "$(hostname)" == "uh-lin" ]] && cp config.def.h.work config.def.h
updpkgsums
makepkg -fi --noconfirm
-rm -rf dwm/
-rm config.def.h
+[[ -d "dwm" ]] && rm -rf dwm/