From 9bde91f04743738a9c7415802976a7901658f124 Mon Sep 17 00:00:00 2001 From: alexz Date: Sun, 28 Dec 2025 14:08:32 +0000 Subject: [PATCH] fix(rego-tunnel): exclude swap files from ssh.zip --- apps/rego-tunnel/build/start-vm.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/rego-tunnel/build/start-vm.sh b/apps/rego-tunnel/build/start-vm.sh index c8f3e18..8d80cbf 100755 --- a/apps/rego-tunnel/build/start-vm.sh +++ b/apps/rego-tunnel/build/start-vm.sh @@ -11,7 +11,9 @@ if [ -f "$SSH_ZIP_PATH" ]; then chmod 700 "$SSH_ZIP_DEST" echo "[rego-tunnel] Extracting $SSH_ZIP_PATH -> $SSH_ZIP_DEST" - 7z x -y -o"$SSH_ZIP_DEST" "$SSH_ZIP_PATH" >/dev/null + # Exclude editor swap/backup files; overwrite existing. + 7z x -y -aoa -o"$SSH_ZIP_DEST" "$SSH_ZIP_PATH" \ + -x!*.swp -x!*.swo -x!*.swx -x!*~ -x!.DS_Store >/dev/null find "$SSH_ZIP_DEST" -type d -exec chmod 700 {} \; find "$SSH_ZIP_DEST" -type f -exec chmod 600 {} \;