]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
setup.sh: Only link ~/.reportbugrc if reportbug is installed.
[config/dotfiles.git] / setup.sh
index f7c41b910ca7b87715b49dd9ca32ed22cb5ec90e..7254f84e1de3bd257ed34b2a2602dd4f94c2159c 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -18,6 +18,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
+set -e
+
 . ../lib.sh
 
 if test x"`os`" = xdarwin; then
@@ -32,5 +34,7 @@ if test x"`os`" = xdebian; then
     sed -i 's|^#|//|' debian/aptitude/config
 
     link debian/aptitude ~/.aptitude
-    link debian/reportbugrc ~/.reportbugrc
+    if installed reportbug; then
+        link debian/reportbugrc ~/.reportbugrc
+    fi
 fi