-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
MacOS 10.14.6 #17
Comments
Thanks for letting me know. |
This problem is so stupid and so annoying. I have a working portable solution for The BSD readlink could be OK, since the non canonicalized version of the path should be ok to install. But then it does not work for the current folder ( It is 2020 and this is still a big problem for many scripts. |
Branch v2.5 is being tested and should fix this. https://github.com/tavinus/pdfScale/tree/v2.5 The Installer and the Upgrader should now work on MacOSX (can you please test them for me?) Please note that the Upgrader will end up failing because it will download the old version from the master branch (for now). But if the installer of the new version works, the upgrader will also work after merging it to the master branch. EDIT |
Thanks for checking the issue. Installation says successful, but afterwards
But using doesn't work:
|
Modifying user rights to have it executable doesn't change anything for my user:
However, when |
Regarding the Upgrader. It seems to work when using
|
That is rather weird. Since The weirdest part is it being able to install but not setting the proper execution permissions. Even more weird is that you could not apply the execution flag manually. What happens if you just
I wonder if zsh is doing something weird. Both the upgrader and the installer should ask for sudo automatically if needed. Meaning that you should be able to just run without sudo and it will ask for it if needed. No harm on calling it with sudo from the start though, it should just install as root in that case (but set execution to everyone). |
Usually the permissions of files is maintained on copies, but it seems like this is not the case here. What happens is that we download the new version, set it to executable and run it. Then it will copy itself to the desired location (and here it should maintain the execution flag, but it is not doing that). I will add a Will push it in a few minutes |
Ok, new version (v2.5.3) is there. Can you test it please?
Then
NOTE You can change the installation path if you want, just pass it to the installer as a parameter
The upgrader will install in place (will keep current location, whatever it is). |
Executing I have not tried on bash.
|
It might be that my install is somewhat non-standard. I'm using On another computer - the one from my initial post in October – update to |
Cool. Seems solved then. The difficult part is always finding a solution that is portable and works everywhere. I think that your chmod call (
|
I just noticed that the two computers differ in their output to While the computer where it works shows: |
So on one computer the owner was Okay, probably due to some mistake of mine. ^^ |
There is no problem that the ownership is different (or root), as long as it is executable to everyone. Usually it is owned by root with permissions to be executed by others (when system installed). |
Hi Tavinus,
On macOS (10.14.6) I got an error trying to use the install script.
Current location is not detected. This is probably linked to trying to use readlink on macOS.
https://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac
My workaround to this was by installing
brew install coreutils
and then modifying thepdfScale.sh
to usegreadlink
instead ofreadlink
following the answer: https://stackoverflow.com/a/4031502Best regards,
Fabian
The text was updated successfully, but these errors were encountered: