From 61b488451c8503613fd87d7a3aa61f738cc69653 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Sun, 12 Jul 2020 16:31:37 +0100 Subject: [PATCH] Update install.pl --- install.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.pl b/install.pl index d40e8eb..bfcf658 100755 --- a/install.pl +++ b/install.pl @@ -4,7 +4,6 @@ use warnings; use autodie; use File::Basename; -use File::Path qw( make_path ); # Prevent running as root if ($< == 0) { @@ -19,7 +18,7 @@ my $log_path = ''; if ($log_target ne 'STDOUT') { # Generate unique logfile my $log_dir = "$dir/logs"; - make_path $log_dir or die "Failed to create path: $log_dir"; + `mkdir -p $log_dir`; my $uuid = `uuidgen`; chomp $uuid; $log_path = "$log_dir/$uuid.log"; @@ -37,7 +36,7 @@ sub execute { # Ensure dependencies installed -execute("sudo apt-get update -qqy && sudo apt-get install -qqy liblocal-lib-perl cpanminus stow"); +execute("sudo apt-get update -qqy && sudo apt-get install -qqy build-essential liblocal-lib-perl cpanminus stow"); # Bootstrap files execute("make -C $dir");