Skip to content

Commit

Permalink
Disable shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Nov 30, 2023
1 parent c26a52f commit 0d11424
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ldnp/abstractpackager.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def create_binary_script(script_path: str | os.PathLike, target_binary: str | os
"set -e",
"",
"# might be used by some AppRun scripts, e.g., craft runenv hook",
"# shellcheck disable=SC2034",
f"this_dir={shlex.quote(str(self.appdir_installed_path))}",
"",
"# might be used by some other scripts, generally a good idea to set it",
Expand All @@ -168,6 +169,7 @@ def create_binary_script(script_path: str | os.PathLike, target_binary: str | os
f'script_dir="$APPDIR/apprun-hooks"',
f'if [ -d "$script_dir" ]; then',
' for script in "$script_dir"/*; do',
" # shellcheck disable=SC1090",
' . "$script"',
" done",
"fi",
Expand Down

0 comments on commit 0d11424

Please sign in to comment.