Skip to content

Commit

Permalink
fix a bug in main.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaquero committed Jan 6, 2024
1 parent bc3f371 commit cb7230e
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions oxidizer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ declare -A OX_OXIDE
# Load Plugins
##########################################################

# load system plugin
case $(uname -a) in
*Darwin*)
. "${OX_OXYGEN[oxpm]}"
;;
*Ubuntu* | *Debian* | *WSL*)
. "${OX_OXYGEN[oxpd]}"
;;
*MINGW*)
. "${OX_OXYGEN[oxpw]}"
;;
esac

# load custom plugins
declare -a OX_PLUGINS

Expand All @@ -66,17 +79,14 @@ for plugin in "${OX_PLUGINS[@]}"; do
done

# load core plugins
declare -a OX_CORE_PLUGINS

declare -a OX_CORE_PLUGINS
case $(uname -a) in
*Darwin*)
OX_CORE_PLUGINS=(oxpm oxpb oxput oxpnw)
;;
*Ubuntu* | *Debian* | *WSL*)
OX_CORE_PLUGINS=(oxpd oxpb oxput oxpnw)
*Darwin* | *Ubuntu* | *Debian* | *WSL*)
OX_CORE_PLUGINS=(oxpb oxput oxpnw)
;;
*MINGW*)
OX_CORE_PLUGINS=(oxpw oxpb oxput oxpnw)
OX_CORE_PLUGINS=(oxps oxput oxpnw)
;;
esac

Expand Down

0 comments on commit cb7230e

Please sign in to comment.