Skip to content

Commit 4d04948

Browse files
authored
4.2.7
1 parent 1f1f98e commit 4d04948

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

util/txt2term.io

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ fnFirma() #Funcion para desplegar la firma del componente, obtiene la firma de l
4444
# 110119-0528 Valida si es Linux, en caso contrario usa openssl
4545
echo "[ ${IPSRV} | ${hostn} ] ${RTINST}"
4646
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
4850
[ "${AutoColorOutPut}" = true ] && ssh -q ${IPSRV} "ls -lad ${vCOMP}*" | awk '{print "\033[32m"$0"\033[0m"}' || ssh -q ${IPSRV} "ls -lad ${vCOMP}*" | awk '{print $0}'
4951
fi
5052
done
5153

52-
if [ "$1" == "1" ]
54+
if [ $1 -eq 1 ]
5355
then
5456
echo "[ $USRSO | $HOSTNAME ] ${RTINST}"
5557
echo "$USRSO $ date"
@@ -67,6 +69,5 @@ fnFirma() #Funcion para desplegar la firma del componente, obtiene la firma de l
6769
# printf "+-----------------------------------------------------------------------------------------------------------------------------------+\n"
6870
printf "$BarinColor\n| <F1>Menú | <F2>Copy Prompt Terminal | <F3>Paste Prompt Terminal | <BloqMay>=Inactive \t\t\t$BarnoColor\n"
6971
# printf "+-----------------------------------------------------------------------------------------------------------------------------------+\n"
70-
7172
}
7273

0 commit comments

Comments
 (0)