From 010cb76003dfbf45431ec62b9039249e8307c153 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 13 Nov 2024 09:11:24 +0100 Subject: [PATCH] _shell_ --- bash/main.sh | 8 ++++---- bash/rescue.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bash/main.sh b/bash/main.sh index 01b2691..44c3910 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -1,13 +1,13 @@ #! /usr/bin/env bash -MAIN_BASH_FILE="$(realpath "${BASH_SOURCE[0]}")" +MAIN_SHELL_FILE="$(realpath "${BASH_SOURCE[0]}")" -MAIN_BASH_ROOT="$(dirname "${MAIN_BASH_FILE}")" +MAIN_SHELL_ROOT="$(dirname "${MAIN_SHELL_FILE}")" main_link_bashrc() { local file="/etc/bash.bashrc" rm --force "${file}" - ln --symbolic "${MAIN_BASH_FILE}" "${file}" + ln --symbolic "${MAIN_SHELL_FILE}" "${file}" } # import modules @@ -33,4 +33,4 @@ main_import_modules() { } # import modules -main_import_modules "${MAIN_BASH_FILE}" +main_import_modules "${MAIN_SHELL_FILE}" diff --git a/bash/rescue.sh b/bash/rescue.sh index 47f6ca7..162985a 100644 --- a/bash/rescue.sh +++ b/bash/rescue.sh @@ -85,7 +85,7 @@ rescue_upload() { "${user_host}" # upload root rsync --delete --recursive \ - "${MAIN_BASH_ROOT}/" "${user_host}:/etc/bash/" + "${MAIN_SHELL_ROOT}/" "${user_host}:/etc/bash/" # call setup # TODO variable ssh "${user_host}" -- "\