Create get

This commit is contained in:
vx_clutch
2025-09-09 09:36:05 -04:00
committed by GitHub
parent 447547b488
commit f16bd2c17c

16
bin/.local/bin/get Normal file
View 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