Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contrib/reinstall.sh script file does not run in Ubuntu 17.10 #8

Open
RichLewis007 opened this issue Feb 12, 2018 · 0 comments
Open

Comments

@RichLewis007
Copy link

RichLewis007 commented Feb 12, 2018

When I am following the instructions in the programmers guide, and run the ./reinstall.sh bash script file in the Contrib directory, nothing seems to happen. I see no errors, but no files/folders get deleted, and no repos are pulled down from github. I'm running Ubuntu 17.10

Looking at the script, I narrowed the problem down to these lines:

if [ "x$1" = "x-y" ]; then
    REPLY="y";
else			   
    read -p "Do you want to nuke, fetch and patch contributed packages [y/N]? "
fi

if [ "X$REPLY" = "Xy" ]; then

When I remove those lines, the script runs perfectly! Who can help me find the problem with these bash scripting lines?

Tip: For alternative ways to script a Y/N prompt in bash, here is the question on StackOverflow: https://stackoverflow.com/questions/3231804/in-bash-how-to-add-are-you-sure-y-n-to-any-command-or-alias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant