Create test.sh

This commit is contained in:
well123cs
2023-04-02 19:13:42 -07:00
committed by GitHub
parent 1b00162178
commit 45fdf3f615
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
if [ -x "$(command -v groups)" ]; then groups; else echo "groups is missing from the machine. skipping..."; fi;
if [ -x "$(command -v id)" ]; then id; else echo "id is missing from the machine. skipping..."; fi;
if [ -x "$(command -v getent)" ]; then getent group; else echo "getent is missing from the machine. skipping..."; fi;
cat /etc/group