mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18: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:
parent
54ce370f7d
commit
c814681c6b
@ -948,7 +948,7 @@ else
|
|||||||
for i in */; do
|
for i in */; do
|
||||||
CWD2="$( pwd )" ;
|
CWD2="$( pwd )" ;
|
||||||
cd "${i}";
|
cd "${i}";
|
||||||
echo "yes" | cp ../alldriverfiles.txt . 2> /dev/null ;
|
cp -f ../alldriverfiles.txt . 2> /dev/null ;
|
||||||
|
|
||||||
cat alldriverfiles.txt \
|
cat alldriverfiles.txt \
|
||||||
| egrep '(\\'"$(basename "$( pwd )")"'\\|Driver Name)' \
|
| egrep '(\\'"$(basename "$( pwd )")"'\\|Driver Name)' \
|
||||||
@ -1076,7 +1076,7 @@ else
|
|||||||
echo " "
|
echo " "
|
||||||
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 ;
|
ln -s -f ../${nthost}-enumdrivers3list-NTx86.txt ${nthost}-enumdrivers3list-NTx86.lnk ;
|
||||||
|
|
||||||
tac ${nthost}-enumdrivers3list-NTx86.lnk \
|
tac ${nthost}-enumdrivers3list-NTx86.lnk \
|
||||||
@ -1095,7 +1095,7 @@ else
|
|||||||
for i in */; do
|
for i in */; do
|
||||||
CWD2="$( pwd )" ;
|
CWD2="$( pwd )" ;
|
||||||
cd "${i}";
|
cd "${i}";
|
||||||
echo "yes" | cp ../alldriverfiles.txt . 2> /dev/null ;
|
cp -f ../alldriverfiles.txt . 2> /dev/null ;
|
||||||
|
|
||||||
cat alldriverfiles.txt \
|
cat alldriverfiles.txt \
|
||||||
| egrep '(\\'"$(basename "$( pwd )")"'\\|Driver Name)' \
|
| egrep '(\\'"$(basename "$( pwd )")"'\\|Driver Name)' \
|
||||||
|
Loading…
Reference in New Issue
Block a user