From 8e7c16305f8de227e2e806d279d7df445d6562c2 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 8 Mar 2020 10:56:58 +0800 Subject: [PATCH 1/2] Create update.sh --- update.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 update.sh diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..f4cc597 --- /dev/null +++ b/update.sh @@ -0,0 +1,12 @@ +#!bash + +gitsource='https://github.com/qkqpttgf/OneManager-php' + +git clone ${gitsource} +\mv -b config.php OneManager-php/ +\mv -b OneManager-php/* ./ +\mv -b OneManager-php/.[^.]* ./ +rm -rf *~ +rm -rf .[^.]*~ +rm -rf OneManager-php +chmod 666 config.php From 284e080ae75abd6d0c0b2b74b0f705dce5c714e4 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 8 Mar 2020 11:02:49 +0800 Subject: [PATCH 2/2] Update update.sh --- update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update.sh b/update.sh index f4cc597..cb2c7ff 100644 --- a/update.sh +++ b/update.sh @@ -2,6 +2,9 @@ gitsource='https://github.com/qkqpttgf/OneManager-php' +OneManagerPath=`cd $(dirname $0);pwd -P` +cd ${OneManagerPath} + git clone ${gitsource} \mv -b config.php OneManager-php/ \mv -b OneManager-php/* ./ @@ -10,3 +13,4 @@ rm -rf *~ rm -rf .[^.]*~ rm -rf OneManager-php chmod 666 config.php +