Skip to content

Commit

Permalink
as required
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravsaini04 committed Sep 26, 2024
1 parent 59afb97 commit 8f1a66e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/dotnet/test-project/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,5 @@ check "usr-local-etc-config-does-not-exist" test ! -f "/usr/local/etc/gitconfig"

checkPackageVersion "pwsh" "7.4.4" "PowerShell"

check_ubuntu_user() {
if ! id -u ubuntu > /dev/null 2>&1; then
echo -e "✔️ User ubuntu does not exist."
else
echo -e "❌ User ubuntu exists."
exit 1;
fi
echo -e "\n\nList of all users:";
cat /etc/passwd;
}

if grep -q 'VERSION_CODENAME=noble' /etc/os-release; then
echo -e "\nThe base image is ubuntu:noble. Checking user Ubuntu.."
check "uid" "check_ubuntu_user"
else
echo -e "\nCannot check user Ubuntu. The base image is not ubuntu:noble."
fi

# Report result
reportResults

0 comments on commit 8f1a66e

Please sign in to comment.