Skip to content

Commit

Permalink
Turn off scp to old linux share
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveCptHook committed Aug 14, 2020
1 parent 3564481 commit 19a3a27
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions build_server/common/environ.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,24 @@ function vcp() {
#use scp instead. this is a workaround for the problem of files
#disappearing from the share folders. fedora samba is the current suspect.
#if this fixes it we know that's where to look.
if [ "$(hostname)" != "lm-filer-01.leap.corp" -a -f "${_src}" -a "${_dst}" != "${_scp_dst}" -a "${LOCAL_BUILD}" != "true" ]; then
echo "${_src} --> ${_scp_dst}"
if scp -pB "${_src}" "${_scp_dst}"; then
return 0
fi
else
if cp -v "${@}"; then
return 0
fi
fi

# if [ "$(hostname)" != "lm-filer-01.leap.corp" -a -f "${_src}" -a "${_dst}" != "${_scp_dst}" -a "${LOCAL_BUILD}" != "true" ]; then
# echo "${_src} --> ${_scp_dst}"
# if scp -pB "${_src}" "${_scp_dst}"; then
# return 0
# fi
# else
# if cp -v "${@}"; then
# return 0
# fi
# fi

if cp -v "${@}"; then
return 0
fi

1>&2 echo "Error: File copy failed - Exiting."

exit 1
}

Expand Down

0 comments on commit 19a3a27

Please sign in to comment.