mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
tools/install,etc: Add quote around path variables to handle case with space in $HOME or $OSH
This commit is contained in:
committed by
Koichi Murase
parent
b88cbd312c
commit
6fd237c363
@@ -137,7 +137,7 @@ _omb_install_user_bashrc() {
|
||||
printf "${BLUE}Using the Oh My Bash template file and adding it to ~/.bashrc${NORMAL}\n"
|
||||
_omb_install_run cp "$OSH"/templates/bashrc.osh-template ~/.bashrc
|
||||
sed "/^export OSH=/ c\\
|
||||
export OSH=$OSH
|
||||
export OSH='${OSH//\'/\'\\\'\'}'
|
||||
" ~/.bashrc >| ~/.bashrc.omb-temp
|
||||
_omb_install_run mv -f ~/.bashrc.omb-temp ~/.bashrc
|
||||
|
||||
|
Reference in New Issue
Block a user