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

"unexpected operator" in have_newer_snapshot #2

Open
PeterBortas opened this issue Apr 24, 2016 · 1 comment
Open

"unexpected operator" in have_newer_snapshot #2

PeterBortas opened this issue Apr 24, 2016 · 1 comment

Comments

@PeterBortas
Copy link

Got this a few times:

Apr 24 22:50:19  Downloading Pike snapshot...
./client.sh: 348: [: -rw-r--r-- 1 nobody nogroup 11250463 Apr 23 14:26 snapshot.tar.gz: unexpected operator
Apr 24 22:50:21  Running test "clang" in /home/zino/hack/xenofarm/client/pike-devel/b14.lysator.liu.se.

In my branch (better nodename pull request applied) this is the line

[ "$OLD" == "$NEW" ] || return 0

This should probably be solved with the normal X prefixing, but I don't get why it doesn't happens all the time if "-r" is what it complains about.

@grubba
Copy link
Member

grubba commented Apr 29, 2016

The problem is most likely that there's no such operator as '==' in /bin/test. It should just be a single '='.

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

2 participants