-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- BalenaCli - support win - version: get correct version - BalenaEtcher: added - drive getType: sudoc is not needed - function.sh - AvailableTimeoutGet: return default value if no value in bootstrap-config.sh - GetDnsSearch: do not show error if /etc/resolv.conf is not present - IsXServerRunning: check if the X Server is available - ScriptErrEnd: added - sudoc - do not prompt for a password if stdin is not available - ensure prompt is visible - show more detail if sudo --validate fails - UserCreate: only show generated passwords - inst - i: allow regular function calls (simplify winPath calls) - appCoreStart appCoreEnd: expose for install - BalenaCli: app name to work with BalenaCli helper script - Password: check if user exists - gwsl: fix executable check - network: currentUpdate: add quick check - password: add user existence check
- Loading branch information
1 parent
1a82026
commit 84f349c
Showing
9 changed files
with
102 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
. "${BASH_SOURCE[0]%/*}/function.sh" app script || exit | ||
|
||
usage() | ||
{ | ||
ScriptUsage "$1" "\ | ||
Usage: $(ScriptName) [OPTION]... [start|program|IsInstalled|IsRunning|version](start) | ||
$(ScriptName) commands." | ||
} | ||
|
||
init() | ||
{ | ||
defaultCommand="start" | ||
program="$UADATA/balena_etcher/balenaEtcher.exe" | ||
} | ||
|
||
closeCommand() { ! isRunningCommand && return 0; ProcessClose "$program"; } | ||
isInstalledCommand() { [[ -f "$program" ]]; } | ||
isRunningCommand() { IsProcessRunning "$program"; } | ||
programCommand() { echo "$program"; } | ||
startArgs() { startArgs=( "$@" ); (( shift+=$# )); return 0; } | ||
startCommand() { AppInstallCheck && "$program" "${startArgs[@]}" "${otherArgs[@]}"; } | ||
startupCommand() { isRunningCommand && return; startCommand; } | ||
versionCommand() { AppInstallCheck && AppVersion "$program"; } | ||
|
||
ScriptRun "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters