Revert "Merge pull request 'Fix deploying with sudo + password' (#3470) from target-host into main"
This reverts commitfbc0f9cde5, reversing changes made tob47c25c620.
This commit is contained in:
@@ -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 "${{@}}"
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user