oh-my-bash icon indicating copy to clipboard operation
oh-my-bash copied to clipboard

Install/uninstall seems broken on ubuntu, WSL

Open FrankvdStam opened this issue 3 years ago • 4 comments

After installing with curl, terminal shows:

: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: No such file or directoryash/oh-my-bash.sh
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found

Trying to uninstall shows:

frank@FrankDesktop:/mnt/c/projects$ sh ~/.oh-my-bash/tools/uninstall.sh
: not found/.oh-my-bash/tools/uninstall.sh: 2:
Are you sure you want to remove Oh My Bash? [y/N] y
: bad variable namebash/tools/uninstall.sh: 3: read: confirmation
/home/frank/.oh-my-bash/tools/uninstall.sh: 38: Syntax error: end of file unexpected (expecting "then")

I've tried this but did not fix the problem for me.

FrankvdStam avatar Oct 30 '21 09:10 FrankvdStam

After installing with curl, terminal shows:

: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: No such file or directoryash/oh-my-bash.sh
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found

Trying to uninstall shows:

frank@FrankDesktop:/mnt/c/projects$ sh ~/.oh-my-bash/tools/uninstall.sh
: not found/.oh-my-bash/tools/uninstall.sh: 2:
Are you sure you want to remove Oh My Bash? [y/N] y
: bad variable namebash/tools/uninstall.sh: 3: read: confirmation
/home/frank/.oh-my-bash/tools/uninstall.sh: 38: Syntax error: end of file unexpected (expecting "then")

I've tried this but did not fix the problem for me.

I get the same thing. It works in a docker ubuntu container but not WSL2 ubuntu distro.

sulo1337 avatar Nov 05 '21 18:11 sulo1337

I had the same issue, it is due to git configuration autocrtf must be disable in order to have linux endline.

git config --global core.autocrlf false

spitant avatar Dec 10 '21 13:12 spitant

@spitant confirmed, if I set autocrlf to false, it does work. I don't consider this a fix though, lets hope we get a proper fix 😄

@sulo1337 see the above workaround, might help you.

FrankvdStam avatar Dec 12 '21 12:12 FrankvdStam

Just found out you only need autoclrf false during installation - setting it back to true afterwards doesn't break the installation

FrankvdStam avatar Dec 12 '21 13:12 FrankvdStam