summaryrefslogtreecommitdiff
path: root/util/copy_archinstall_log.sh
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-12-15 11:03:01 +0100
committerxengineering <mail2xengineering@protonmail.com>2019-12-15 11:03:01 +0100
commita9d270eddc062c336c40e1ef8e2c732986222673 (patch)
tree1f68137196293ec69e994872538bb09ab12329aa /util/copy_archinstall_log.sh
parent9c3854fc72d16c7a819cd74e93dda56e6805cc21 (diff)
downloadarchinstall-a9d270eddc062c336c40e1ef8e2c732986222673.tar
archinstall-a9d270eddc062c336c40e1ef8e2c732986222673.tar.zst
archinstall-a9d270eddc062c336c40e1ef8e2c732986222673.zip
Removed some hard-coding.
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"