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

Differences with rfxn.com version? #3

Open
elsiehupp opened this issue Feb 12, 2021 · 0 comments
Open

Differences with rfxn.com version? #3

elsiehupp opened this issue Feb 12, 2021 · 0 comments

Comments

@elsiehupp
Copy link

I just installed prm from your website, and running install.sh on Ubuntu 20.04 LTS gives the following output:

.: PRM installed
Install path:    /usr/local/prm
Config path:     /usr/local/prm/conf.prm
Executable path: /usr/local/sbin/prm
./install.sh: 46: [: 1: unexpected operator

The version of install.sh from rfxn.com is not the same as the version on GitHub; among other differences is the line where the error occurs. In the rfxn.com version, install.sh ends with:

46 if [ "$cron" == "1" ]; then
47 echo "CronJob path:    /etc/cron.d/prm"
48 fi

Whereas here it ends with:

if [ "$BASH_VERSION" = '' ]; then
if [ "$cron" = "1" ]; then
echo "CronJob path: /etc/cron.d/prm"
fi
else
if [ "$cron" == "1" ]; then
echo "CronJob path: /etc/cron.d/prm"
fi
fi

...which my guess is designed to suppress this error? (I don't know shell scripting.)

This is not the only difference between the two versions of install.sh... is there any meaningful difference between the two versions of prm? If so, which one is preferable?

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