summaryrefslogtreecommitdiff
path: root/dh_installmenu
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installmenu')
-rwxr-xr-xdh_installmenu8
1 files changed, 2 insertions, 6 deletions
diff --git a/dh_installmenu b/dh_installmenu
index a2c5910b..9499ad37 100755
--- a/dh_installmenu
+++ b/dh_installmenu
@@ -65,9 +65,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if ($menu ne '') {
if (compat(10)) {
- if (! -d "$tmp/usr/share/menu") {
- install_dir("$tmp/usr/share/menu");
- }
+ install_dir("$tmp/usr/share/menu");
install_file($menu,"$tmp/usr/share/menu/$package");
# Add the scripts if a menu-method file doesn't exist.
@@ -83,9 +81,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
if ($menu_method ne '') {
- if (!-d "$tmp/etc/menu-methods") {
- install_dir("$tmp/etc/menu-methods");
- }
+ install_dir("$tmp/etc/menu-methods");
install_file($menu_method,"$tmp/etc/menu-methods/$package");
if (! $dh{NOSCRIPTS}) {