summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-includes
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-03-14 16:51:25 +0100
committeranonym <anonym@riseup.net>2016-03-14 16:51:25 +0100
commit9a044e87991db80f9917113fc0718c527a5fa838 (patch)
tree0872cc114397a3d9d3970dd655a6ba510b7f6ca0 /config/chroot_local-includes
parenta09727cb5430d65c16704615478ec0d05d42384f (diff)
Simplify.
The unnecessary construct seems to have been copy-pasted, so let's deal with both indentical simplifications at once.
Diffstat (limited to 'config/chroot_local-includes')
-rwxr-xr-xconfig/chroot_local-includes/usr/local/bin/electrum6
-rwxr-xr-xconfig/chroot_local-includes/usr/local/bin/icedove6
2 files changed, 4 insertions, 8 deletions
diff --git a/config/chroot_local-includes/usr/local/bin/electrum b/config/chroot_local-includes/usr/local/bin/electrum
index 8cd54d8..52aa937 100755
--- a/config/chroot_local-includes/usr/local/bin/electrum
+++ b/config/chroot_local-includes/usr/local/bin/electrum
@@ -22,10 +22,8 @@ verify_start () {
"
local launch="`gettext \"_Launch\"`"
local exit="`gettext \"_Exit\"`"
- if ! zenity --question --title "" --text "${dialog_msg}" --default-cancel \
- --ok-label "${launch}" --cancel-label "${exit}"; then
- return 1
- fi
+ zenity --question --title "" --text "${dialog_msg}" --default-cancel \
+ --ok-label "${launch}" --cancel-label "${exit}"
}
if ! electrum_config_is_persistent; then
diff --git a/config/chroot_local-includes/usr/local/bin/icedove b/config/chroot_local-includes/usr/local/bin/icedove
index e879e5e..e155f6b 100755
--- a/config/chroot_local-includes/usr/local/bin/icedove
+++ b/config/chroot_local-includes/usr/local/bin/icedove
@@ -22,10 +22,8 @@ warn_about_claws_mail_persistence() {
local launch="`gettext \"_Launch\"`"
local exit="`gettext \"_Exit\"`"
- if ! zenity --question --title "" --text "${dialog_msg}" --default-cancel \
- --ok-label "${launch}" --cancel-label "${exit}"; then
- return 1
- fi
+ zenity --question --title "" --text "${dialog_msg}" --default-cancel \
+ --ok-label "${launch}" --cancel-label "${exit}"
}
start_icedove() {