diff options
author | David Runge <dave@sleepmap.de> | 2018-12-08 21:46:19 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2018-12-08 21:46:19 +0100 |
commit | 54f7f1ccba1589099be01b02435a318ac2b0f018 (patch) | |
tree | 245761fdc20fdde21ac561d1fe2e629f308dd3c9 /bin/realtime-suggestions | |
parent | 1bf046edd2f2798147c753deebdf283401b54aac (diff) | |
download | dotfiles-54f7f1ccba1589099be01b02435a318ac2b0f018.tar.gz dotfiles-54f7f1ccba1589099be01b02435a318ac2b0f018.tar.bz2 dotfiles-54f7f1ccba1589099be01b02435a318ac2b0f018.tar.xz dotfiles-54f7f1ccba1589099be01b02435a318ac2b0f018.zip |
bin/realtime-suggestions: Adding check for Linux kernel.
Diffstat (limited to 'bin/realtime-suggestions')
-rwxr-xr-x | bin/realtime-suggestions | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/realtime-suggestions b/bin/realtime-suggestions index 632825a..232e17a 100755 --- a/bin/realtime-suggestions +++ b/bin/realtime-suggestions @@ -14,6 +14,13 @@ check_root() { fi } +check_kernel_name() { + if [[ "$(uname -s)" != *Linux* ]]; then + echo "This script needs to be run on a Linux system." + exit 1 + fi +} + check_filesystems() { local mount_points=() local mount_point_data=() @@ -198,6 +205,7 @@ check_for_useful_tools() { done } +check_kernel_name check_root check_filesystems check_groups |