Skip to content

Commit 0d11424

Browse files
committed
Disable shellcheck warnings
1 parent c26a52f commit 0d11424

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ldnp/abstractpackager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def create_binary_script(script_path: str | os.PathLike, target_binary: str | os
159159
"set -e",
160160
"",
161161
"# might be used by some AppRun scripts, e.g., craft runenv hook",
162+
"# shellcheck disable=SC2034",
162163
f"this_dir={shlex.quote(str(self.appdir_installed_path))}",
163164
"",
164165
"# might be used by some other scripts, generally a good idea to set it",
@@ -168,6 +169,7 @@ def create_binary_script(script_path: str | os.PathLike, target_binary: str | os
168169
f'script_dir="$APPDIR/apprun-hooks"',
169170
f'if [ -d "$script_dir" ]; then',
170171
' for script in "$script_dir"/*; do',
172+
" # shellcheck disable=SC1090",
171173
' . "$script"',
172174
" done",
173175
"fi",

0 commit comments

Comments
 (0)