-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ShellCheck for OCI package scripts (#154)
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/DocSpace-buildtools/pulls/154 Reviewed-by: Evgeniy Antonyuk <[email protected]> Co-authored-by: Vladimir Ischenko <[email protected]> Co-committed-by: Vladimir Ischenko <[email protected]>
- Loading branch information
1 parent
49c8c4d
commit 829eb38
Showing
2 changed files
with
23 additions
and
0 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,15 @@ | ||
# ShellCheck can't follow non-constant source. Used for dynamically sourcing scripts. | ||
SC1090 # Example: source <(curl -fsSL "${DOWNLOAD_URL_PREFIX}/uninstall.sh") | ||
|
||
# Variable appears unused. May be used indirectly or exported. | ||
SC2034 # Example: INSTALLATION_TYPE="${2^^}" | ||
|
||
# Quote to prevent word splitting. Not quoted due to intentional command behavior. | ||
SC2046 # Example: ${package_manager} -y install $([ "$DIST" != "fedora" ] && echo "epel-release") | ||
|
||
# Variable referenced but not assigned. Likely set dynamically or externally. | ||
SC2154 # Example: echo "${product}" | ||
|
||
# Declare and assign separately to avoid masking return values. Combined for simplicity. | ||
SC2155 # Example: local AVAILABLE_DISK_SPACE=$(df -m / | tail -1 | awk '{ print $4 }') | ||
|