Create get
This commit is contained in:
16
bin/.local/bin/get
Normal file
16
bin/.local/bin/get
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
pkgs="$@"
|
||||
check() {
|
||||
return command -v xbps-install >dev/null 2>&1
|
||||
}
|
||||
|
||||
if check xbps-install; then
|
||||
installer="sudo xbps-install -Syu"
|
||||
elif check pacman; then
|
||||
installer="sudo pacman -Syu"
|
||||
elif check apt; then
|
||||
installer="sudo apt install -y"
|
||||
else
|
||||
echo Could not find package manager.
|
||||
fi
|
||||
Reference in New Issue
Block a user