summaryrefslogtreecommitdiff
path: root/util/copy_archinstall_log.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/copy_archinstall_log.sh')
-rw-r--r--util/copy_archinstall_log.sh7
1 files changed, 5 insertions, 2 deletions
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 <https://www.gnu.org/licenses/>.
-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"