-
Notifications
You must be signed in to change notification settings - Fork 148
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
functionize most actions, add main(), use [ thing ] to check #79
Conversation
added --verbose, -s, change HELPSTRING to comply with it, format xdg missing variable to comply with main()'s style of messages, shorten check_if_file_exists, organize functions & variables, added placeholder for unalias -a for future maintainer message, add comments
personally, i still find it quite difficult to have to separate every single action. |
This has the same issues as your previous PR, you're still rewriting half the project. I said I'd think about merging two of the changes you made, most of this has nothing to do with those. |
What?? What do you exactly want me to do then?
Also, I had done nothing with the actual core yet, I am simply reorganizing the script. |
You know what? Fine, I will just do one PR per change. |
Please tell me exactly what you are interested in so I can focus on those, it had seemed like you hadn't read the description of this PR. |
Mainly it's the part that checks for the existence of the xdg env vars. |
In that case, I will mainly focus on making if statements better. |
before i open another PR and maybe get rejected again, i will just ask if these following features will get accepted:
personally, it would not make sense to have the simpler xdg env vars look they are while the other if statements dont look the same |
No. |
In that case the scripting style will be very unorganized so it shall stay the same.. |
@wael444 with all due respect, you might be better off maintaining your own fork. I don't really understand the pressure you are making here. Nobody is forcing you to contribute? |
why even bother making my own fork if no one will use it other than me? |
original commit description:
to be honest, i don't know what
[ thing ]
should be called.i can still change my commit messages with
--amend
notes file:
jq
display red colors to look scaryto
check_if_file_exists()
, FILE_PATH is not in double quotes, i'm not sure why but i'm not touching it.[ -e "$FILEPATH]
already returns, i assume you are simply reversing it, an easier way to do this is[ ! -e "$FILEPATH" ]
, it would simply already return the return value by itself.check_programs
to be safer(?). (my source? i've read it somewhere.)tput
tool for colors?do_check_programs
tocheck_programs
main()
to handle everything(?)unalias -a
to the top because i still don't know what it does.In this case, if A is true but B is false, C will run.
andIgnore this warning when you actually do intend to run C when either A or B fails.
, i will revert it if needed.i made this PR one commit only, why? many of the changes i've added, if having completely seperate commits and wanting only one of the commits, will probably have merge conflicts.