X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=dc3a3417508f252cebe56a0f1f4762d3abc2e48f;hb=97a9987710fddc237be609ef1cd7d17323317957;hp=d11e1ca4139d1af465d571de9eeb8e59086111f7;hpb=7c291c2637556b4f8b3ae1503e7457eecc064215;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index d11e1ca..dc3a341 100755 --- a/setup.sh +++ b/setup.sh @@ -18,10 +18,11 @@ # along with this program. If not, see . -set -e +set -eu . ../lib.sh + if test x"`os`" = xdarwin; then # Sets a custom PATH for GUI applications. mkdir -p ~/.MacOSX @@ -29,10 +30,12 @@ if test x"`os`" = xdarwin; then fi if test x"`os`" = xdebian; then # Necessary as aptitude rewrites the config file on every start. - generate cat debian/aptitude/config .real + generate debian/aptitude/config .in cat # aptitude/config uses // as comment instead of #. - sed -i 's|^#|//|' debian/aptitude/config + sed_i 's|^#|//|' debian/aptitude/config link debian/aptitude ~/.aptitude - link debian/reportbugrc ~/.reportbugrc + if installed reportbug; then + link debian/reportbugrc ~/.reportbugrc + fi fi