Skip to content

Commit 8e1a9ff

Browse files
authored
MeTube: Fix inserting path into .bashrc (#8589)
* Fixes * Update * Update
1 parent af99128 commit 8e1a9ff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ct/metube.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function update_script() {
3030
fi
3131

3232
if [[ $(echo ":$PATH:" != *":/usr/local/bin:"*) ]]; then
33-
echo 'export PATH="/usr/local/bin:$PATH"' >>~/.bashrc
33+
echo -e "\nexport PATH=\"/usr/local/bin:\$PATH\"" >>~/.bashrc
3434
source ~/.bashrc
3535
if ! command -v deno &>/dev/null; then
3636
export DENO_INSTALL="/usr/local"
@@ -110,6 +110,7 @@ EOF
110110

111111
msg_ok "Updated Successfully!"
112112
fi
113+
exit
113114
}
114115

115116
start

install/metube-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ msg_info "Installing Deno"
3333
export DENO_INSTALL="/usr/local"
3434
curl -fsSL https://deno.land/install.sh | $STD sh -s -- -y
3535
[[ ":$PATH:" != *":/usr/local/bin:"* ]] &&
36-
echo 'export PATH="/usr/local/bin:$PATH"' >>~/.bashrc &&
36+
echo -e "\nexport PATH=\"/usr/local/bin:\$PATH\"" >>~/.bashrc &&
3737
source ~/.bashrc
3838
msg_ok "Installed Deno"
3939

0 commit comments

Comments
 (0)