File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- USERNAME=${1:- codespace }
3+ USERNAME=${1:- $(id -un) }
44ID_OS=$( grep ' ^ID=' < /etc/os-release | cut -d ' =' -f2)
55FAILED_COUNT=0
66
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ SCRIPT_FOLDER_NAME=$(dirname $0)
44cd ${SCRIPT_FOLDER_NAME} || exit
55
66# shellcheck source=/dev/null
7- source test-utils.sh codespace
7+ source test-utils.sh
88
99if [ " ${ID_OS} " = " ubuntu" ]; then
1010 package_list_debian=" apt-utils \
@@ -35,17 +35,5 @@ check "shfmt" shfmt --version
3535check " shellcheck" shellcheck --version
3636check " editorconfig" ec --version
3737check " trivy" trivy --version
38- if [ " ${ID_OS} " = " ubuntu" ]; then
39- python_system_package_list_debian=" python3 \
40- python3-dev \
41- python3-pip \
42- python3-venv"
43- checkOSPackages " python-system-packages" ${python_system_package_list_debian}
44- fi
45- check " python" python --version
46- check " python3" python3 --version
47- check " python3 ascii art" python3 -c' from art import *; tprint("Python3")'
48- check " python3 file" python3 " $( pwd) " /test.py
49- check " pipx directory" [ -d " /usr/local/pipx/bin" ] && echo " Pipx directory Exists"
5038
5139reportResults
You can’t perform that action at this time.
0 commit comments