Update SigScripts with better jar script

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
Nic0Nic0Nii 3 years ago
parent 5d0dc2c41e
commit 9fcd0384ab
  1. 1
      Java/scripts/jar.sh
  2. 2
      Java/scripts/md5
  3. BIN
      bin/JavaProjectTemplate.jar
  4. 2
      utils/md5
  5. 8
      utils/search.sh

@ -11,6 +11,5 @@ cd ${OUT_DIR}
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest sig
printf "\n\n\nRunning Program...\n\n"
java -jar ${PROJECT_NAME}.jar "$@"
mv ${PROJECT_NAME}.jar ${ORIGINAL_LOC}
cd ..
./${LANGUAGE}/scripts/clean.sh

@ -1,4 +1,4 @@
build.sh:377a432ffbd63b53322d1451a214201d -
clean.sh:96ce35f2d2dcb555421e00a6afda23ca -
commit.sh:b186d649fa17c68926fe1caec4a7216c -
jar.sh:02707b9398a76825f81ba7a71f5f4a34 -
jar.sh:cce5e429168700490f9c413b665d13d6 -

Binary file not shown.

@ -1,5 +1,5 @@
.coauthors:3785ad38663e5fc43e574914ad067294 -
define.sh:74ea08fb12cab1053663f87007ddd29a -
main.sh:eacf0984141d284db6681dee4dc39ffa -
search.sh:0e54450c506bedf1d73666156fa78e1a -
search.sh:7162a8e3487a5cca5a3a24d55230e24d -
.updateDirectories:0ede00461e947494545e694040787b3f -

@ -24,7 +24,7 @@ function check() {
if [ -f "$1/md5" ];
then
echo " md5: https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1md5"
curl -H 'Cache-Control: no-cache, no-store' -s "https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1md5/?$(date +%s)" --output /tmp/out
curl -H 'Cache-Control: no-cache, no-store' -s https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1md5 --output /tmp/out
cmp -s $1/md5 /tmp/out
if [ "$?" -ne 0 ]
then
@ -41,15 +41,15 @@ function check() {
if [ "$g" != ".coauthors" ]; then
echo "++Redownload $1$g..."
if [ -f "$1$g" ]; then
curl -H 'Cache-Control: no-cache, no-store' "https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g/?$(date +%s)" --output $1$g
curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g
else
echo "===Could not find directory, assuming regular scripts directory exists."
curl -H 'Cache-Control: no-cache, no-store' "https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g/?$(date +%s)" --output $LANGUAGE/scripts/$g
curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $LANGUAGE/scripts/$g
fi
fi
else
echo "++==Downloading $1$g..."
curl -H 'Cache-Control: no-cache, no-store' "https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g/?$(date +%s)" --output $1$g
curl -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g
fi
fi
done < /tmp/out

Loading…
Cancel
Save