fixed some bugs
This commit is contained in:
parent
42199f7b15
commit
1ae12fb6a9
2 changed files with 10 additions and 9 deletions
|
@ -1,4 +1,14 @@
|
|||
function upin
|
||||
|
||||
# ─< check for sudo/root >──────────────────────────────────────────────────────────────────
|
||||
if [ $USER = "root" ]
|
||||
set sudo ""
|
||||
else
|
||||
if command -v sudo >/dev/null 2>&1
|
||||
set sudo "sudo"
|
||||
end
|
||||
end
|
||||
|
||||
# ─────────────────────────< START | distro/packagemanger detection >─────────────────────────
|
||||
# ─< DNF - Fedora >─────────────────────────────────────────────────────
|
||||
if command -v dnf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue