Revert "Merge pull request 'Fix deploying with sudo + password' (#3470) from target-host into main"

This reverts commit fbc0f9cde5, reversing
changes made to b47c25c620.
This commit is contained in:
Jörg Thalheim
2025-05-04 13:37:09 +02:00
parent fbc0f9cde5
commit 9af16037a2
5 changed files with 33 additions and 121 deletions

View File

@@ -80,16 +80,6 @@ exec {bash} -l "${{@}}"
fake_sudo.write_text(
f"""#!{bash}
# skip over every sudo option
for arg in "${{@}}"; do
if [[ "$arg" == "-p" ]]; then
shift
shift
continue
fi
break
done
exec "${{@}}"
"""
)