From 1e94fa48b9e52da744261264aee9e75afaf42d49 Mon Sep 17 00:00:00 2001 From: TheKysek Date: Sun, 4 Jun 2017 10:38:06 +0200 Subject: [PATCH] Start file tweaks - do not automatically update - pass command line arguments to main Python file --- README.md | 3 ++- start.sh | 4 +--- update.sh | 3 +++ 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 update.sh diff --git a/README.md b/README.md index 0fef7d2..e8e860b 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ chmod +x start.sh ./start.sh ``` -It is worth noting that while executing the `start.sh` file MiNode tries to do a `git pull` in order to update itself to the latest version. +It is worth noting that the `start.sh` file MiNode no longer tries to do a `git pull` in order to update to the latest version. +Is is now done by the `update.sh` file. ## Contact - TheKysek: BM-2cVUMXVnQXmTJDmb7q1HUyEqkT92qjwGvJ diff --git a/start.sh b/start.sh index 4fb8fe7..53d199d 100644 --- a/start.sh +++ b/start.sh @@ -1,4 +1,2 @@ #!/bin/sh -cd "$(dirname "$0")" -git pull -python3 src/main.py +python3 src/main.py "$@" diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..5ac909a --- /dev/null +++ b/update.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd "$(dirname "$0")" +git pull