1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-12 04:41:15 +08:00

Rename push_dmzj.sh to push.sh

This commit is contained in:
源文雨
2021-07-01 00:55:39 +08:00
committed by GitHub
parent ba80ee2261
commit 9ebcf72214

24
uploader/push.sh Executable file
View File

@@ -0,0 +1,24 @@
if [ $# -lt 6 ];
then
echo "usage: ip port kanban.txt data.bin password setpass"
exit
fi
kanban=`sed '/md5:/d' $3`
md5val=`md5 $4`
cat > $3 << EOF
$kanban
EOF
echo md5:${md5val##* } | tr -d '\n' >> $3
cat > cmd_seq.txt << EOF
fumiamaset$6
dat
file
$4
set$6
ver
file
$3
quit
EOF
simple-kanban-client $1 $2 < cmd_seq.txt