From 4fc1f7cc6c4b52ecfcf42b3a0d2a06c795a5574c Mon Sep 17 00:00:00 2001 From: Yuri Zamyatin Date: Mon, 6 Oct 2025 00:13:04 +0000 Subject: [PATCH] fix --- arch-user/bin/wssh | 2 +- arch-user/bin/wsudo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch-user/bin/wssh b/arch-user/bin/wssh index 699704a..282d108 100755 --- a/arch-user/bin/wssh +++ b/arch-user/bin/wssh @@ -19,7 +19,7 @@ read -r -d '' init_cmd << WSCOMPAT_EOF_9oqn7IVF || true cat << 'WSCOMPAT_EOF_84EbM3la' > "\$WSCOMPAT_DIR/profile" $( sed 's/WSCOMPAT_EOF_/WSCOMPAT_EOF__/g' "$WSCOMPAT_DIR/profile" - for file in "$WSCOMPAT_DIR.profile"*.sh; do + for file in "$WSCOMPAT_DIR/profile"*.sh; do if [ -f "$file" ]; then sed 's/WSCOMPAT_EOF_/WSCOMPAT_EOF__/g' "$file" fi diff --git a/arch-user/bin/wsudo b/arch-user/bin/wsudo index 55e140b..dde7458 100755 --- a/arch-user/bin/wsudo +++ b/arch-user/bin/wsudo @@ -141,7 +141,7 @@ read -r -d '' init_cmd << WSCOMPAT_EOF_ahkiem3K || true cat << 'WSCOMPAT_EOF_daePe0Ph' > "\$WSCOMPAT_DIR/profile" $( sed 's/WSCOMPAT_EOF_/WSCOMPAT_EOF__/g' "$WSCOMPAT_DIR/profile" - for file in "$WSCOMPAT_DIR.profile"*.sh; do + for file in "$WSCOMPAT_DIR/profile"*.sh; do if [ -f "$file" ]; then sed 's/WSCOMPAT_EOF_/WSCOMPAT_EOF__/g' "$file" fi