COPR-command
COPR-command copied to clipboard
A small script reenabling the "COPR" command on Fedora distros not including it
`backup_file` is referenced but not assigned _[SC2154](https://www.shellcheck.net/wiki/SC2154)_ ## References - https://github.com/boredsquirrel/COPR-command/blob/46bca38efb0f0dad66e92f18f63e0733495e9035/copr#L95 - https://github.com/boredsquirrel/COPR-command/blob/46bca38efb0f0dad66e92f18f63e0733495e9035/copr#L115 - https://github.com/boredsquirrel/COPR-command/blob/46bca38efb0f0dad66e92f18f63e0733495e9035/copr#L116
Getting an error when running `copr list` downstream. Looks like one of the if statements has an extra fi so it's not getting to the elif statements This is the...
`/root/.local/bin` does not exist, installing the command will likely need RPM packaging
I made the script more portable using `env bash` and added colors to the echos. This PR will be in draft for now to analyze if it is good or...
Two commands - if not exists -> download the repo - if already exists -> use sed and activate it
test if the repo exists, only then escalate privileges
a function the check the selinux labels of `/etc/yum.repos.d` OR the unix permissions, if they are wrong, run the function