]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
setup.sh: Be more compatible.
[config/dotfiles.git] / setup.sh
index e7d9ac67945457312da65ec8f1ddca5ef8b67f3f..ed385678d1d7ea579d7d3cb74701c44165b5b53d 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -5,14 +5,17 @@
 
 . ../lib.sh
 
-if [ `os` = darwin ]; then
+if [ x`os` = xdarwin ]; then
     # Sets a custom PATH for GUI applications.
     mkdir -p ~/.MacOSX
     link darwin/environment.plist ~/.MacOSX/environment.plist
 fi
-if [ `os` = debian ]; then
+if [ x`os` = xdebian ]; then
     # Necessary as aptitude rewrites the config file on every start.
-    cp debian/aptitude/config.real debian/aptitude/config
+    generate cat debian/aptitude/config .real
+    # aptitude/config uses // as comment instead of #.
+    sed -i 's|^#|//|' debian/aptitude/config
 
     link debian/aptitude ~/.aptitude
+    link debian/reportbugrc ~/.reportbugrc
 fi