Codebase list poshc2 / 47c6afde-265f-41b8-ad3a-65765d4967d1/main resources / scripts / posh
47c6afde-265f-41b8-ad3a-65765d4967d1/main

Tree @47c6afde-265f-41b8-ad3a-65765d4967d1/main (Download .tar.gz)

posh @47c6afde-265f-41b8-ad3a-65765d4967d1/mainraw · history · blame

#!/bin/bash

# trap ctrl-c and call ctrl_c()
trap ctrl_c INT

function ctrl_c() {
    popd >/dev/null
    exit
}

source /usr/local/bin/_posh-common
get_posh_dir

pushd "$POSH_DIR" >/dev/null

if [ "$?" -eq "0" ]; then
    sudo python3 -m pipenv run python3 start.py --client "$@"
    popd > /dev/null
fi