Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit caa6153b authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

indentation

parent b6957199
......@@ -69,9 +69,6 @@ else
printf "\033[0;32mOK\033[0m\n"
fi
echo === Listing archive content ===
tar tvf latest.tar
echo === Extracting one random file ===
target_line=$(tar tvf latest.tar | grep -e '[0-9]$' | shuf -n 1)
target_file=$(echo "$target_line"| awk '{print $NF}')
......@@ -112,18 +109,12 @@ echo === Compare msi traces ===
dumped_msi=$(msi $target_file)
data_msi=$(msi $archive_file)
echo "Traces of remote file $target_file"
echo "$dumped_msi"
echo "Traces of local file $archive_file"
echo "$data_msi"
if [[ $(md5sum <<< $dumped_msi | awk '{print $1}') == $(md5sum <<< $data_msi | awk '{print $1}') ]]; then
printf "\033[0;32mOK\033[0m Traces match\n"
else
echo "Traces of remote file $target_file"
echo "$dumped_msi"
echo "Traces of local file $archive_file"
echo "$data_msi"
printf "\033[1;33mWARNING\033[0m Traces mismatch\n"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment