Skip to content

Commit

Permalink
Merge pull request #27 from ADORSYS-GIS/develop
Browse files Browse the repository at this point in the history
refactor(chore): improve code
  • Loading branch information
ArmandMeppa authored Feb 11, 2025
2 parents 5347c59 + 162fc03 commit 83c1bd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdenti
$SERVER_NAME = if ($env:SERVER_NAME -ne $null) { $env:SERVER_NAME } else { "wazuh-agent-status" }
$CLIENT_NAME = if ($env:CLIENT_NAME -ne $null) { $env:CLIENT_NAME } else { "wazuh-agent-status-client" }
$PROFILE = if ($env:PROFILE -ne $null) { $env:PROFILE } else { "user" }
$APP_VERSION = if ($env:APP_VERSION -ne $null) { $env:APP_VERSION } else { "0.2.6" }
$APP_VERSION = if ($env:APP_VERSION -ne $null) { $env:APP_VERSION } else { "0.2.7" }

if ($PROFILE -eq "admin") {
$WAS_VERSION = $APP_VERSION
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ DESKTOP_UNIT_FOLDER=${DESKTOP_UNIT_FOLDER:-"$HOME/.config/autostart"}
DESKTOP_UNIT_FILE=${DESKTOP_UNIT_FILE:-"$DESKTOP_UNIT_FOLDER/$CLIENT_NAME.desktop"}

PROFILE=${PROFILE:-"user"}
APP_VERSION=${APP_VERSION:-"0.2.5"}
APP_VERSION=${APP_VERSION:-"0.2.7"}

# Assign app version based on profile
case "$PROFILE" in
Expand Down

0 comments on commit 83c1bd7

Please sign in to comment.