OSDN Git Service

[update] : Added function to call me
authorhayao <shun819.mail@gmail.com>
Tue, 22 Dec 2020 13:11:15 +0000 (22:11 +0900)
committerhayao <shun819.mail@gmail.com>
Tue, 22 Dec 2020 13:11:52 +0000 (22:11 +0900)
wfa

diff --git a/wfa b/wfa
index cab7f78..2d90f01 100755 (executable)
--- a/wfa
+++ b/wfa
@@ -85,6 +85,7 @@ declare -A C=()
 wfa_version="0.1"
 wfa_name="WFA"
 wfa_command="wfa"
+wfa_path="$(dirname "$(realpath "${0}")")/$(basename "${0}")"
 
 #-- options (int) --#
 option_y_count=0
@@ -698,6 +699,10 @@ run_pacman() {
     run_sudo "${pacman_command}" ${@}
 }
 
+wfa() {
+    "${wfa_path}" ${@}
+}
+
 # pacmanの引数を追加する
 # https://github.com/FascodeNet/aptpac/blob/master/aptpac のADD_OPTION関数を参考
 # Usage: add_args [pacman/makepkg/git/gpg/sudo/curl] <args1> <args2>...