source: ogAgent-Git/linux/scripts/OGAgentTool

qndtest
Last change on this file was dd16198, checked in by Ramón M. Gómez <ramongomez@…>, 4 years ago

#940: Fix variable bug from commit ba568ee.

  • Property mode set to 100755
File size: 291 bytes
Line 
1#!/bin/sh
2
3for p in python python2; do
4    [ -z "$PYTHON" ] && [ $($p -c 'import sys; print(sys.version_info[0])') -eq 2 ] && PYTHON=$p
5done
6if [ -z "$PYTHON" ]; then
7    echo "ERROR: OGAgent needs Python 2" &>2
8    exit 1
9fi
10
11FOLDER=/usr/share/OGAgent
12
13cd $FOLDER
14$PYTHON OGAgentUser.py $@
Note: See TracBrowser for help on using the repository browser.