Skip to content

Commit

Permalink
Reshuffle to match boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jul 2, 2019
1 parent c1e418c commit 1783203
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ LIBRARY_NAME=`grep name library/setup.cfg | awk -F" = " '{print $2}'`
PY2_DEPS=`grep py2deps library/setup.cfg | awk -F" = " '{print $2}'`
PY3_DEPS=`grep py3deps library/setup.cfg | awk -F" = " '{print $2}'`

printf "$LIBRARY_NAME $LIBRARY_VERSION Python Library: Installer\n\n"

if [ $(id -u) -ne 0 ]; then
printf "Script must be run as root. Try 'sudo ./install.sh'\n"
exit 1
fi

function apt_pkg_install {
PACKAGES=()
for PACKAGE in "$@"; do
Expand All @@ -29,6 +22,13 @@ function apt_pkg_install {
fi
}

printf "$LIBRARY_NAME $LIBRARY_VERSION Python Library: Installer\n\n"

if [ $(id -u) -ne 0 ]; then
printf "Script must be run as root. Try 'sudo ./install.sh'\n"
exit 1
fi

cd library

printf "Installing for Python 2..\n"
Expand Down

0 comments on commit 1783203

Please sign in to comment.