[inactive-gitlab-users] Don't use PATH
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [inactive-gitlab-users] Don't use PATH
- Date: Tue, 3 Sep 2019 17:22:03 +0000 (UTC)
commit 25f96dc7e902e4890978f36179f8d74c119d80c1
Author: Andrea Veri <averi redhat com>
Date: Tue Sep 3 19:22:06 2019 +0200
Don't use PATH
inactive-gitlab-users.sh | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/inactive-gitlab-users.sh b/inactive-gitlab-users.sh
index 21502e2..56d0596 100755
--- a/inactive-gitlab-users.sh
+++ b/inactive-gitlab-users.sh
@@ -1,6 +1,4 @@
#!/bin/sh
-PATH=$PATH:/usr/local/sysadmin-bin/gitlab
-export PATH
-
-python3 inactive-gitlab-users.py get-inactive -t ${TIMEDELTA_UNIT}:${TIMEDELTA_VALUE} >
/tmp/inactive-gitlab-users.json
+cd /usr/local/sysadmin-bin/gitlab && \
+python3 ./inactive-gitlab-users.py get-inactive -t ${TIMEDELTA_UNIT}:${TIMEDELTA_VALUE} >
/tmp/inactive-gitlab-users.json
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]