From 8e1a9ffb079bc0d302d80aa2345768db9779fd67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Thu, 23 Oct 2025 13:11:22 +0200 Subject: [PATCH] MeTube: Fix inserting path into .bashrc (#8589) * Fixes * Update * Update --- ct/metube.sh | 3 ++- install/metube-install.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ct/metube.sh b/ct/metube.sh index a1db5bb11..bea5be626 100644 --- a/ct/metube.sh +++ b/ct/metube.sh @@ -30,7 +30,7 @@ function update_script() { fi if [[ $(echo ":$PATH:" != *":/usr/local/bin:"*) ]]; then - echo 'export PATH="/usr/local/bin:$PATH"' >>~/.bashrc + echo -e "\nexport PATH=\"/usr/local/bin:\$PATH\"" >>~/.bashrc source ~/.bashrc if ! command -v deno &>/dev/null; then export DENO_INSTALL="/usr/local" @@ -110,6 +110,7 @@ EOF msg_ok "Updated Successfully!" fi + exit } start diff --git a/install/metube-install.sh b/install/metube-install.sh index c4055d518..ce6fde8c3 100644 --- a/install/metube-install.sh +++ b/install/metube-install.sh @@ -33,7 +33,7 @@ msg_info "Installing Deno" export DENO_INSTALL="/usr/local" curl -fsSL https://deno.land/install.sh | $STD sh -s -- -y [[ ":$PATH:" != *":/usr/local/bin:"* ]] && - echo 'export PATH="/usr/local/bin:$PATH"' >>~/.bashrc && + echo -e "\nexport PATH=\"/usr/local/bin:\$PATH\"" >>~/.bashrc && source ~/.bashrc msg_ok "Installed Deno"