-
Notifications
You must be signed in to change notification settings - Fork 5
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
Have last argument be the instance name to match other koha-* scripts? #12
Comments
Good point, I will grab this. I want to make gitify support both forms, without having to specify flags, gitify can tell them apart by checking if both exist as koha instances and if both are valid paths. |
approve of this plan, that way it won't mess with people who are not as backwards as me :) |
@wizzyrea I have pushed a potential (and untested) fix to a new branch 'smarter-argument-handling' you should now be able to use both forms If you could test and let me know what you think. Sadly I do not have a koha instance I can currently test against. |
Hi, I tried this, and it seemed to work ok until the end - I got an error message as follows: ERROR: from file '/etc/koha/sites//path/to/git/clone/koha-conf.xml' not found at ./koha-gitify line 91. Conveniently, I made a typo the first time I ran it, and it did error out when the git path didn't exist properly with the instance on the end. So that was good. :) |
@wizzyrea thanks for that, I had a silly bug in my handling of which argument was which (it would always get them backwards, which explains why you saw your git path appended to the end of I have pushed a fix for this, I also added in a DIE statement that will stop it before it does any actual work so it won't do any more damage. Thankfully it shouldn't have been able to make any changes to your actual koha instances sites Please pull the branch My testing: Success cases:
notice that in both of the above we have the line error cases:
This looks good to me. |
Pushed small change to make error messages correctly singular testing success:
error:
|
All of the other koha package scripts take the instance name as the last argument. This trips me up every time I use gitify. It's arbitrary but... would it be better to change it to be consistent with the other scripts?
(Yes, I am actually happy to submit a patch for this one if you think it's a good idea, I won't bother otherwise ^.^)
The text was updated successfully, but these errors were encountered: