File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,14 @@ fnFirma() #Funcion para desplegar la firma del componente, obtiene la firma de l
44
44
# 110119-0528 Valida si es Linux, en caso contrario usa openssl
45
45
echo " [ ${IPSRV} | ${hostn} ] ${RTINST} "
46
46
ssh -q ${IPSRV} " [ " $( uname -s) " = " Linux" ] && echo '${USRSO} $ md5sum ${vCOMP} *;ls -lad ${vCOMP} *' || echo 'openssl dgst -md5 ${vCOMP} *'"
47
- ssh -q ${IPSRV} " [ " $( uname -s) " = " Linux" ] && md5sum ${vCOMP} * || openssl dgst -md5 ${vCOMP} *"
47
+ ssh -q ${IPSRV} " [ " $( uname -s) " = " Linux" ] && md5sum ${vCOMP} * || openssl dgst -md5 ${vCOMP} *" | tee v.tmp # 240922-1347
48
+ cat v.tmp | head -1 > version.txt
49
+ rm -rf v.tmp
48
50
[ " ${AutoColorOutPut} " = true ] && ssh -q ${IPSRV} " ls -lad ${vCOMP} *" | awk ' {print "\033[32m"$0"\033[0m"}' || ssh -q ${IPSRV} " ls -lad ${vCOMP} *" | awk ' {print $0}'
49
51
fi
50
52
done
51
53
52
- if [ " $1 " == " 1 " ]
54
+ if [ $1 -eq 1 ]
53
55
then
54
56
echo " [ $USRSO | $HOSTNAME ] ${RTINST} "
55
57
echo " $USRSO $ date"
@@ -67,6 +69,5 @@ fnFirma() #Funcion para desplegar la firma del componente, obtiene la firma de l
67
69
# printf "+-----------------------------------------------------------------------------------------------------------------------------------+\n"
68
70
printf " $BarinColor \n| <F1>Menú | <F2>Copy Prompt Terminal | <F3>Paste Prompt Terminal | <BloqMay>=Inactive \t\t\t$BarnoColor \n"
69
71
# printf "+-----------------------------------------------------------------------------------------------------------------------------------+\n"
70
-
71
72
}
72
73
You can’t perform that action at this time.
0 commit comments