From f4f702c39dd2365f6ca43ed6b72a84c708fded8d Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 27 Aug 2025 18:56:23 +0000 Subject: [PATCH] shellcheck fixes; closes #690 a small selection of changes from the PR --- bin/bubbleparty.sh | 2 +- bin/prisonparty.sh | 2 +- copyparty/broker_util.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/bubbleparty.sh b/bin/bubbleparty.sh index 2e6aab3e..f59aaa02 100755 --- a/bin/bubbleparty.sh +++ b/bin/bubbleparty.sh @@ -9,7 +9,7 @@ bwrap \ --dev-bind /dev /dev \ --dir /tmp \ --dir /var \ - --bind $(pwd) $(pwd) \ + --bind "$(pwd)" "$(pwd)" \ --share-net \ --die-with-parent \ --file 11 /etc/passwd \ diff --git a/bin/prisonparty.sh b/bin/prisonparty.sh index d495c833..403f1588 100755 --- a/bin/prisonparty.sh +++ b/bin/prisonparty.sh @@ -141,7 +141,7 @@ chmod 777 "$jail/tmp" # create a dev -(cd $jail; mkdir -p dev; cd dev +(cd "$jail"; mkdir -p dev; cd dev [ -e null ] || mknod -m 666 null c 1 3 [ -e zero ] || mknod -m 666 zero c 1 5 [ -e random ] || mknod -m 444 random c 1 8 diff --git a/copyparty/broker_util.py b/copyparty/broker_util.py index ea987200..10c778dc 100644 --- a/copyparty/broker_util.py +++ b/copyparty/broker_util.py @@ -2,7 +2,6 @@ from __future__ import print_function, unicode_literals import argparse -import traceback from queue import Queue