add --web-ver
This commit is contained in:
18
bin/fp
18
bin/fp
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Easily install fSD packages
|
# Easily install fSD packages
|
||||||
|
|
||||||
scriptversion="0.0.1"
|
scriptversion="0.1.1"
|
||||||
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@@ -87,6 +87,21 @@ remove() {
|
|||||||
echo "done"
|
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
|
version="$me/fSD v$scriptversion
|
||||||
|
|
||||||
Copyright (C) 2026 fSD.
|
Copyright (C) 2026 fSD.
|
||||||
@@ -114,6 +129,7 @@ while [ $# -gt 0 ]; do
|
|||||||
case $1 in
|
case $1 in
|
||||||
--help) echo "$usage"; exit 0 ;;
|
--help) echo "$usage"; exit 0 ;;
|
||||||
--version) echo "$version"; exit 0 ;;
|
--version) echo "$version"; exit 0 ;;
|
||||||
|
--web-ver) web; exit 0;;
|
||||||
-*) echo "$me: Unknown option '$1'." >&2; exit 1 ;;
|
-*) echo "$me: Unknown option '$1'." >&2; exit 1 ;;
|
||||||
search) shift; search "$*"; exit 0 ;;
|
search) shift; search "$*"; exit 0 ;;
|
||||||
install) shift; install "$1"; shift ;;
|
install) shift; install "$1"; shift ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user