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