1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

examples: Use cp with force option

"Error: SHELLCHECK_WARNING:
/usr/share/doc/samba/printing/VampireDriversFunctions:951:15: warning[SC2216]: Piping to 'cp', a command that doesn't read stdin. Wrong command or missing xargs?
  949|   	CWD2=""$( pwd )"" ;
  950|   	cd ""${i}"";
  951|-> 	echo ""yes"" | cp ../alldriverfiles.txt . 2> /dev/null ;
  952|
  953|   	cat alldriverfiles.txt \"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
Andreas Schneider 2024-06-24 15:14:43 +02:00 committed by Andreas Schneider
parent 54ce370f7d
commit c814681c6b

View File

@ -948,7 +948,7 @@ else
for i in */; do
CWD2="$( pwd )" ;
cd "${i}";
echo "yes" | cp ../alldriverfiles.txt . 2> /dev/null ;
cp -f ../alldriverfiles.txt . 2> /dev/null ;
cat alldriverfiles.txt \
| egrep '(\\'"$(basename "$( pwd )")"'\\|Driver Name)' \
@ -1076,7 +1076,7 @@ else
echo " "
echo " ###########################################################################################"
###### echo "yes" | cp -f ../../../${nthost}/W32X86/${nthost}-enumdrivers3list-NTx86.txt . 2> /dev/null ;
###### cp -f ../../../${nthost}/W32X86/${nthost}-enumdrivers3list-NTx86.txt . 2> /dev/null ;
ln -s -f ../${nthost}-enumdrivers3list-NTx86.txt ${nthost}-enumdrivers3list-NTx86.lnk ;
tac ${nthost}-enumdrivers3list-NTx86.lnk \
@ -1095,7 +1095,7 @@ else
for i in */; do
CWD2="$( pwd )" ;
cd "${i}";
echo "yes" | cp ../alldriverfiles.txt . 2> /dev/null ;
cp -f ../alldriverfiles.txt . 2> /dev/null ;
cat alldriverfiles.txt \
| egrep '(\\'"$(basename "$( pwd )")"'\\|Driver Name)' \