24 lines
366 B
Bash
Executable File
24 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ORIGDIR=$PWD
|
|
WORKDIR="/root/git/tqwnet_nodelist"
|
|
|
|
cd $WORKDIR
|
|
git pull
|
|
|
|
makenl -d nodelist.txt
|
|
|
|
absfile=$(ls -rt outfile/* | tail -1)
|
|
file=$(echo $(basename $absfile))
|
|
ext=$(echo $file | awk -F. '{ print $2 }')
|
|
newext="z${ext:1:2}"
|
|
|
|
zip -j9 zip/tqwnet.$newext $absfile
|
|
|
|
git add . -A
|
|
git commit -m "$(date "+%Y-%m-%d %H:%M:%S")"
|
|
git push
|
|
|
|
cd $ORIGDIR
|
|
|