Skip to content

Commit d65a14b

Browse files
authored
Add kernel version
1 parent 8f44737 commit d65a14b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

stack.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ stack_status() {
4040
display_db_info
4141
}
4242

43+
# Function to display the Kernel version (Linux and macOS compatible)
44+
display_kernel_version() {
45+
echo "Kernel Version:"
46+
uname -sr
47+
echo
48+
}
49+
4350
# Function to display information about the environment
4451
display_info() {
4552
echo "Checking environment information..."
@@ -227,6 +234,9 @@ case "$1" in
227234
status)
228235
stack_status
229236
;;
237+
kernel)
238+
display_kernel_version
239+
;;
230240
version)
231241
display_info
232242
;;

0 commit comments

Comments
 (0)