diff --git a/ldnp/abstractpackager.py b/ldnp/abstractpackager.py index 88d2a34..a26a91c 100644 --- a/ldnp/abstractpackager.py +++ b/ldnp/abstractpackager.py @@ -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", @@ -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",