Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Feb 4, 2020
1 parent 62cbd81 commit ec2d428
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SOURCES/libexec/build-remote.shx
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,10 @@ sshCommand() {
local ssh_opts
ssh_opts=$(getSSHOpts)

if [[ -n "$key" ]] ; then
no_pass=true
fi

if [[ -n "$pass" && -z "$no_pass" ]] ; then
sshpass -p "$pass" ssh $SSH_BASE_OPTS -t -t -q $ssh_opts "$host" "$comm"
else
Expand Down
5 changes: 5 additions & 0 deletions SOURCES/rpmbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,11 @@ if [[ -n "$PREFS_FILE" && -r "$PREFS_FILE" ]] ; then
unset arg argn argp
fi

# Clear some options read from preferences file for tmux worker
if [[ "$*" =~ "--tmux-worker" ]] ; then
unset remote parallel
fi

## OPTIONS PARSING 5 ###################################################################

if [[ $# -eq 0 ]] ; then
Expand Down

0 comments on commit ec2d428

Please sign in to comment.