-
Notifications
You must be signed in to change notification settings - Fork 249
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
Fixed install_linux.sh #239
base: main
Are you sure you want to change the base?
Conversation
…s sudo and tried chmod +x on linux_install.sh. Told ChaptGPT to fix it, found no errors but added a robust bash file that fixed it somehow.
I don't want to recreate the repository right now but changing from WHOAMI to LOGNAME is showing the user invoking the script: Fonts copied to /home/geoffrey/.local/share/fonts/Monaspace and font cache updated. I'm downloading Fedora to make sure but I'm not worried about it. The deno dependency is ... odd. All I know is that I only have these kerning fonts and my command line is jacked but that was to be expected. It solved the immediate error until someone wants to take the time to create a cross-compile test-suite for this. It'd not be a big effort but definitely uh summer intern work. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's pretty good.
# remove all fonts from ~/.local/share/fonts that start with "Monaspace" | ||
rm -rf ~/.local/share/fonts/Monaspace* | ||
# Set the target font directory | ||
TARGET_DIR="/home/$USER/.local/share/fonts/Monaspace" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be $HOME
.
TARGET_DIR="/home/$USER/.local/share/fonts/Monaspace" | |
target_dir="$HOME/.local/share/fonts/Monaspace" |
Also, uppercase variables are usually used for environment variables, not local script variables.
See PR #266 |
Thought I submitted this last night, whatever:
Bash 5.2, Ubuntu 24.04
Input from root of
~/Workspaces/monaspace
Input:
Also tried:
Though sudo should have overwritten that.
Output (original line 12 & 15, directories created manually and also tried to let the script do its thing made no difference.
Output:
Edit: I believe context on the terminal is correct, as non root "geoffrey" ... it does some weird things when starting over with original script and deleting
/home/geoffrey/share/fonts/
Input:
Output:
Input (original install_linux.sh):
Output:
```/home/geoffrey``
Run command with debug:
Take my word for it but it does not install
/home/geoffrey/fonts
but it puts it all under root. Coming from Debian/Fedora I don't think this would have happened. It would have kept my username, but I'd be in an admin group so I think my PID would be the same but would run through the wheel group. The differences in the scripts with no changes except conditionals impacting globbing is really strange.I am going to update this script, then try to run under a cross-compile matrix. I do not know why the differences are happening.