Changes for tests

This commit is contained in:
Félix Aime 2021-02-19 16:18:32 +01:00
parent b0869a94c9
commit 79f6c09cc9
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ create_directory() {
} }
get_version() { get_version() {
git tag | tail -n 1 > /usr/share/tinycheck/VERSION git tag | tail -n 1 | xargs echo -n > /usr/share/tinycheck/VERSION
} }
generate_certificate() { generate_certificate() {

View File

@ -7,7 +7,7 @@ fi
if [ $PWD = "/usr/share/tinycheck" ]; then if [ $PWD = "/usr/share/tinycheck" ]; then
echo "[+] Cloning the current repository to /tmp/" echo "[+] Cloning the current repository to /tmp/"
rm -rf /tmp/tinycheck/ &> /dev/null rm -rf /tmp/tinycheck/ &> /dev/null
cd /tmp/ && git clone https://github.com/KasperskyLab/tinycheck cd /tmp/ && git clone --branch update-feature https://github.com/KasperskyLab/tinycheck
cd /tmp/tinycheck && bash update.sh cd /tmp/tinycheck && bash update.sh
elif [ $PWD = "/tmp/tinycheck" ]; then elif [ $PWD = "/tmp/tinycheck" ]; then