OSDN Git Service

[fix] : -v not work
authorhayao <shun819.mail@gmail.com>
Tue, 11 Aug 2020 06:50:29 +0000 (15:50 +0900)
committerhayao <shun819.mail@gmail.com>
Tue, 11 Aug 2020 06:50:29 +0000 (15:50 +0900)
aptpac

diff --git a/aptpac b/aptpac
index f948654..e3c060d 100755 (executable)
--- a/aptpac
+++ b/aptpac
@@ -13,6 +13,8 @@
 # (c) 2019-2020 Fascode Network.
 # maintained by Yamada Hayao
 
+APTPAC_VERSION="2.2.0"
+
 set -e
 
 OPTIONS=
@@ -82,6 +84,13 @@ _exit () {
     exit ${1}
 }
 
+_version () {
+cat << EOF
+aptpac ${APTPAC_VERSION} - A pacman wrapper with syntax based on debian's apt
+(c) 2019-2020 Fascode Network. Yamada Hayao
+EOF
+}
+
 _msg_error () {
     echo -e "${@}" >&2
 }