source:
ogAgent-Git/linux/scripts/OGAgentTool
@
b7b2a58
Last change on this file since b7b2a58 was 6900215, checked in by , 5 years ago | |
---|---|
|
|
File size: 317 bytes |
Rev | Line | |
---|---|---|
[11f7a07] | 1 | #!/bin/sh |
2 | ||
[1b0abe2] | 3 | for p in python python3; do |
[6900215] | 4 | [ "$(command -v $p)" ] && [ -z "$PYTHON" ] && [ $($p -c 'import sys; print(sys.version_info[0])') -eq 3 ] && PYTHON=$p |
[b2c8207] | 5 | done |
6 | if [ -z "$PYTHON" ]; then | |
[1b0abe2] | 7 | echo "ERROR: OGAgent needs Python 3" &>2 |
[b2c8207] | 8 | exit 1 |
9 | fi | |
10 | ||
[11f7a07] | 11 | FOLDER=/usr/share/OGAgent |
12 | ||
13 | cd $FOLDER | |
[dd16198] | 14 | $PYTHON OGAgentUser.py $@ |
Note: See TracBrowser
for help on using the repository browser.