Skip to content
Snippets Groups Projects
dm-8idi-upload 402 B
Newer Older
sveseli's avatar
sveseli committed
#!/bin/sh

# Run command

if [ -z $DM_ROOT_DIR ]; then
    cd `dirname $0` && myDir=`pwd`
    setupFile=$myDir/../../setup.sh
    if [ ! -f $setupFile ]; then
        echo "Cannot find setup file: $setupFile"
        exit 1
    fi
    source $setupFile > /dev/null
fi
source $DM_ROOT_DIR/bin/dm_command_setup.sh

eval "$DM_ROOT_DIR/src/python/dm/aps_beamline_tools/cli/uploadCli.py $DM_COMMAND_ARGS"