12345678910111213141516171819202122232425262728293031 |
- #!/bin/sh
- if [ "$1" = "help" ]; then
- echo "*** Description ***"
- echo "Installs package to system using system package manager"
- echo ""
- echo "*** Usage ***"
- echo "pkg-in <package-name(s)>"
- echo ""
- echo "*** Parameters ***"
- echo "package-name(s): Name of packages to install"
- echo ""
- echo "*** Options ***"
- echo ""
- exit 0
- fi
- void () {
- if [ -f /usr/bin/xbps-install ]; then
- echo "Doing dry run"
- xbps-install -Syn "$@"
- echo "Finished dry run, continue?"
- doas xbps-install -S "$@"
- exit 1
- fi
- }
- void "$@"
- echo "Cannot determain package manager"
|