add --web-ver

This commit is contained in:
2026-01-26 20:52:42 -05:00
parent 58436c6b73
commit a29919829b

18
bin/fp
View File

@@ -1,7 +1,7 @@
#! /bin/sh
# Easily install fSD packages
scriptversion="0.0.1"
scriptversion="0.1.1"
#
#
@@ -87,6 +87,21 @@ remove() {
echo "done"
}
web() {
cat <<EOF
___ ___ _
| __| _ ___ ___| _ \ |____ _
| _| '_/ -_) -_) _/ / / _\` |
|_||_| \___\___|_| |_\_\__, |
|___/
FreePkg (fp) is the offical package manager of the Free Software Distribtuions Project.
You have invoked the web version of this script. Remove the --web-ver flag and
you can see further options.
EOF
}
version="$me/fSD v$scriptversion
Copyright (C) 2026 fSD.
@@ -114,6 +129,7 @@ while [ $# -gt 0 ]; do
case $1 in
--help) echo "$usage"; exit 0 ;;
--version) echo "$version"; exit 0 ;;
--web-ver) web; exit 0;;
-*) echo "$me: Unknown option '$1'." >&2; exit 1 ;;
search) shift; search "$*"; exit 0 ;;
install) shift; install "$1"; shift ;;