Skip to content

Commit

Permalink
feat: THIS_OS variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yanivmo committed Oct 4, 2024
1 parent 31cc20f commit 79f14c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shuz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# ░ ░ ░ ░ ░░ ░ ░░░ ░ ░ ░ ░ ░ ░ ░
# ░ ░ ░ ░ ░ ░ ░
#
# ----------------[ v1.2.0 ]----------------
# ----------------[ v1.3.0 ]----------------
# Shell utilz for ergonomic shell scripting.
#

Expand Down Expand Up @@ -82,6 +82,10 @@ ERROR_COLOR=${red}
# Change this value to define the indentation size
INDENTATION=' '

# THIS_OS is "macos" on Mac and "linux" everywhere else
# naive but works for my simple needs :)
[ "$(uname)" = "Darwin" ] && THIS_OS=macos || THIS_OS=linux

# Echos
# ------------------------------------------

Expand Down

0 comments on commit 79f14c7

Please sign in to comment.