2016-11-13 11:25:30 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#go to the directory of the script
|
|
|
|
reldir=`dirname $0`
|
|
|
|
cd $reldir
|
|
|
|
directory=`pwd`
|
|
|
|
|
|
|
|
if [ "$(id -u)" != "0" ]; then
|
|
|
|
echo "This script must be run as root" 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2016-11-13 11:44:05 +00:00
|
|
|
pip3 install dist/listdownloader* --upgrade
|
2016-11-13 11:25:30 +00:00
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo 'Package installation failed. Did you build the package? Do you have pip3 installed?'
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|