diff options
Diffstat (limited to 'apt/apt.conf.d/99-local-set-preferred-x-www-browser')
-rwxr-xr-x | apt/apt.conf.d/99-local-set-preferred-x-www-browser | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt/apt.conf.d/99-local-set-preferred-x-www-browser b/apt/apt.conf.d/99-local-set-preferred-x-www-browser index 9302c6e..5fbbe90 100755 --- a/apt/apt.conf.d/99-local-set-preferred-x-www-browser +++ b/apt/apt.conf.d/99-local-set-preferred-x-www-browser @@ -2,5 +2,7 @@ DPkg { -Post-Invoke {"if [ -x /usr/sbin/update-alternatives ] && [ -x /usr/bin/iceweasel ]; then /usr/sbin/update-alternatives --set x-www-browser /usr/bin/iceweasel; else exit 0; fi";}; +Post-Invoke { +"s=/usr/bin/iceweasel; [ ! -x $s ] || /usr/sbin/update-alternatives --set x-www-browser $s" +;}; }; |