From bcbb37a87e0c136ef6e1855e0f19248270a876e0 Mon Sep 17 00:00:00 2001 From: Javier Ruiz Ramos Date: Wed, 7 Aug 2024 12:05:40 +0200 Subject: [PATCH] fix: Resolve asusctl and supergfxctl compile issues in rog.sh --- install-scripts/rog.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install-scripts/rog.sh b/install-scripts/rog.sh index e6e98e1..619c0c8 100755 --- a/install-scripts/rog.sh +++ b/install-scripts/rog.sh @@ -16,6 +16,9 @@ cd "$PARENT_DIR" || exit 1 source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" +# Sourcing Rust +source $HOME/.cargo/env + # Set the name of the log file to include the current date and time LOG="install-$(date +%d-%H%M%S)_rog.log" @@ -40,8 +43,7 @@ install_and_log() { if git clone "$git_url" "$project_name"; then cd "$project_name" || exit 1 - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 2>&1 | tee -a "$LOG" - source "$HOME/.cargo/env" + make if sudo make install 2>&1 | tee -a "$LOG"; then @@ -68,4 +70,4 @@ install_and_log "asusctl" "https://gitlab.com/asus-linux/asusctl.git" # Download and build supergfxctl install_and_log "supergfxctl" "https://gitlab.com/asus-linux/supergfxctl.git" -clear \ No newline at end of file +clear