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

Use '-a' operator as 'AND' instead of '&&' in deb/postinst script #1364

Closed
wants to merge 1 commit into from
Closed

Conversation

hirakuro
Copy link

On installing ganttproject_2.8.3-r2088-1_all.deb, I found an error bellow is shown.

/var/lib/dpkg/info/ganttproject.postinst: 11: [: missing ]

In ganttproject.postinst, an operaotr && is used in [ command, but it should be -a.

dbarashev pushed a commit that referenced this pull request Mar 13, 2017
@dbarashev
Copy link
Contributor

Hi, thanks for reporting this issue! It seems that -a operator is deprecated, though. The right way of fixing is to close left expression with ] and open right expression with [ (done in my commit above).

@dbarashev dbarashev closed this Mar 13, 2017
@hirakuro
Copy link
Author

Thank you very much for your comment and more appropriate fix.
I did not know that -a is deprecated, thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants