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

Enable script to be called from any location #45

Merged
merged 1 commit into from
Nov 24, 2021
Merged

Enable script to be called from any location #45

merged 1 commit into from
Nov 24, 2021

Conversation

IndrekHaav
Copy link
Contributor

Right now the script can only be executed in the directory where it's installed, because of the way the component scripts are sourced. Executing the script from anywhere else gives these errors:

fetch.sh/fetch.sh: line 14: ./components/host.sh: No such file or directory
fetch.sh/fetch.sh: line 15: ./components/kernel.sh: No such file or directory
fetch.sh/fetch.sh: line 16: ./components/uptime.sh: No such file or directory
fetch.sh/fetch.sh: line 17: ./components/os_arch.sh: No such file or directory
fetch.sh/fetch.sh: line 18: ./components/de-wm_theme.sh: No such file or directory
fetch.sh/fetch.sh: line 19: ./components/cpu_gpu.sh: No such file or directory
fetch.sh/fetch.sh: line 21: ./components/pkgs.sh: No such file or directory
fetch.sh/fetch.sh: line 22: ./components/ram_swap.sh: No such file or directory
fetch.sh/fetch.sh: line 23: ./components/term_shell.sh: No such file or directory

This PR fixes that, by prepending the correct path to each component script.

@wick3dr0se wick3dr0se merged commit 95da4ad into wick3dr0se:master Nov 24, 2021
@IndrekHaav IndrekHaav deleted the path_fix branch November 24, 2021 20:19
@wick3dr0se
Copy link
Owner

Thanks! Works great, I appreciate all your contributions!

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