commit bc31d51896613f7d6d1f5370225e5fd976292201 parent fd831d86d6b3987e84e38379582ecfa57c451709 Author: Anders Damsgaard <andersd@riseup.net> Date: Thu, 30 Nov 2017 14:03:46 -0500 check OS before launching commands Diffstat:
M | links/bin/hardwareinfo.sh | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/links/bin/hardwareinfo.sh b/links/bin/hardwareinfo.sh @@ -1,4 +1,9 @@ #!/bin/sh +if [ "$(uname)" != "Linux" ]; then + echo "this script only works on linux" + exit 1 +fi + c="sudo dmidecode -s" echo "# bios"