From c07c42d53369a6536d3d70d5f07a4d784f13bfcd Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Fri, 16 Jun 2017 08:55:59 +0200 Subject: [PATCH] Create log dir if necessary --- xfce-xterm-launcher-log-age | 1 + 1 file changed, 1 insertion(+) diff --git a/xfce-xterm-launcher-log-age b/xfce-xterm-launcher-log-age index 14ccef0..1b1048c 100755 --- a/xfce-xterm-launcher-log-age +++ b/xfce-xterm-launcher-log-age @@ -12,6 +12,7 @@ my $launcher = $ARGV[0]; my $launcher_dir = "$ENV{HOME}/.config/xfce4/panel/launcher-$launcher"; my @desktop_files = glob("$launcher_dir/*.desktop"); +mkdir "$ENV{HOME}/log/"; mkdir "$ENV{HOME}/log/xfce-xterm-launcher/"; open my $log, ">>", "$ENV{HOME}/log/xfce-xterm-launcher/" . strftime("%Y-%m", localtime);