2015-12-10 19:38:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2015-12-07 21:03:59 +00:00
|
|
|
python_path=$(command -v python2 || command -v python3)
|
2015-12-10 19:38:53 +00:00
|
|
|
if [ -z "$python_path" ]; then
|
|
|
|
echo "Could not find python2 or python3 executable."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2016-01-21 19:25:33 +00:00
|
|
|
ln -sf $python_path /usr/local/bin/dib-python
|