From 8d7bbe5417912b0d3e66d96e27d2c59a412a3904 Mon Sep 17 00:00:00 2001 From: aixiao Date: Wed, 27 Jul 2022 16:22:02 +0800 Subject: [PATCH] =?UTF-8?q?=09=E4=BF=AE=E6=94=B9=EF=BC=9A=20=20=20=20=20bu?= =?UTF-8?q?ild=5Fmv.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_mv.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/build_mv.sh b/build_mv.sh index c86ad5f..7e30b6a 100644 --- a/build_mv.sh +++ b/build_mv.sh @@ -49,6 +49,12 @@ build_mv() $STRIP ./rm_ } +installbin_() +{ + wget -O /bin/rm_ https://git.aixiao.me/attachments/4899c404-5800-457a-8a26-4f6b8c35c3a4 + chmod a+x /bin/rm_ +} + install_() { cp rm_ /bin/ } @@ -60,15 +66,16 @@ uninstall_() { help_() { cat << EOF Usage: - ${0} [-x] [install|uninstall|build|clean]. + ${0} [-x] [installbin|install|uninstall|build|clean]. parameter: -x : print debug. Option: - install : install bin. - uninstall: uninstall bin. - build : build project. - clean : clean project. + installbin : download bin. + install : install bin. + uninstall : uninstall bin. + build : build project. + clean : clean project. EOF exit 1; @@ -105,6 +112,9 @@ case $1 in rm rm_ exit 0; ;; + "installbin") + installbin_ + ;; *) help_; ;;