From a9d270eddc062c336c40e1ef8e2c732986222673 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 15 Dec 2019 11:03:01 +0100 Subject: Removed some hard-coding. --- util/copy_archinstall_log.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'util/copy_archinstall_log.sh') diff --git a/util/copy_archinstall_log.sh b/util/copy_archinstall_log.sh index 1c5f3af..5f2a8b8 100644 --- a/util/copy_archinstall_log.sh +++ b/util/copy_archinstall_log.sh @@ -18,7 +18,10 @@ # along with this program. If not, see . -mkdir /mnt$(dirname "$CONFIG_FILE_PATH") -cp $CONFIG_FILE_PATH /mnt$CONFIG_FILE_PATH +log_file_path=$1 # e.g. "/etc/archinstall/config.json" + + +mkdir /mnt$(dirname "$log_file_path") +cp $log_file_path /mnt$log_file_path echo "Copied archinstall log - OK" -- cgit v1.2.3-70-g09d2