Closed randomtwdude closed 5 months ago
I honestly don't think creating single "general" install script is good practice. There are a lot of problems with it and almost infinite amount of possibilities that you would need to cover.
For example your gensoquote_install.txt
(and probably any other humanly written install script would) have at least this problems:
/bin/bash
itself may not exist or be at another location, for example like in nixos, it's located at /nix/store/mb82447z77gwh2vfsmvj03qq141c6rph-system-path/bin/bash
, or any other os that doesn't use FHS.curl
(maybe they prefer wget
or any other), git
(maybe they like gix) and so on./usr/local/bin
(even in case of FHS) means that firstly you need root access and secondly it is will be available to all users of pcAnd that's not even considering it from the security and bugs point.
Those are some good points!
I wrote a simple bash script to install gensoquote. (part of the fumosay-gensoquote wrapper script) gensoquote_install.txt
curl
andgit
)cargo
automatically, if needed/usr/local/bin