X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=7254f84e1de3bd257ed34b2a2602dd4f94c2159c;hb=ea9794e34ffe3de76829a8e8b0c1a98e94bca63b;hp=81cca7656c7f01e28ce1b626ff18c33d045313e1;hpb=9a7f5138808821310c907751ff2d62c2a4da0402;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 81cca76..7254f84 100755 --- a/setup.sh +++ b/setup.sh @@ -18,19 +18,23 @@ # along with this program. If not, see . +set -e + . ../lib.sh -if [ x`os` = xdarwin ]; then +if test x"`os`" = xdarwin; then # Sets a custom PATH for GUI applications. mkdir -p ~/.MacOSX link darwin/environment.plist ~/.MacOSX/environment.plist fi -if [ x`os` = xdebian ]; then +if test x"`os`" = xdebian; then # Necessary as aptitude rewrites the config file on every start. 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 + if installed reportbug; then + link debian/reportbugrc ~/.reportbugrc + fi fi