sum updoots
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# packages: 7zip, shred, secure-delete
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
unix_seconds=$(date +%s)
|
unix_seconds=$(date +%s)
|
||||||
@@ -35,38 +36,36 @@ reset() {
|
|||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo "autoshredding out..."
|
echo "autoshredding out..."
|
||||||
srm -r -z -l -l ./out
|
srm -r -z -l -l "$out_dir"
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo "rebuilding out..."
|
echo "rebuilding out..."
|
||||||
printf "making out dir structure..."
|
printf "making out dir structure..."
|
||||||
mkdir -p out/contents
|
mkdir -p "$inner_dir"
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "updating out/contents/READMD.md..."
|
printf "updating $inner_dir/READMD.md..."
|
||||||
echo "put files to verifiably archive in here" > out/contents/README.md
|
echo "put files to verifiably archive in here" > "$inner_dir/README.md"
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "updating out/README.md..."
|
printf "updating $out_dir/README.md..."
|
||||||
echo "# todo: make this nice" > ./out/README.md
|
echo "# todo: make this nice" > "$out_dir/README.md"
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "making out/test_validate_passphrase.sh..."
|
printf "making "$out_dir"/test_validate_passphrase.sh..."
|
||||||
cp test_validation_passphrase.txt out/test_validate_passphrase.sh
|
cp test_validation_passphrase.txt "$out_dir/test_validate_passphrase.sh"
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "making out/test_validate_passphrase.sh executable..."
|
printf "making $out_dir/test_validate_passphrase.sh executable..."
|
||||||
chmod +x out/test_validate_passphrase.sh
|
chmod +x "$out_dir/test_validate_passphrase.sh"
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "making out/verify-everything.sh..."
|
printf "making $out_dir/verify-everything.sh..."
|
||||||
cp verify-everything.txt out/verify-everything.sh
|
cp verify-everything.txt "$out_dir"/verify-everything.sh
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "making out/verify-everything.sh executable"...
|
printf "making $out_dir/verify-everything.sh executable"...
|
||||||
chmod +x out/verify-everything.sh
|
chmod +x "$out_dir/verify-everything.sh"
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo -e "\n\033[0;32mreset done :3\033[0m\n"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
printf "setting up environment..."
|
printf "setting up environment..."
|
||||||
bash reset.sh
|
reset
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "ssh-keygen: makin new key: ${key_path}..."
|
printf "ssh-keygen: makin new key: ${key_path}..."
|
||||||
@@ -174,7 +173,7 @@ checkcode $?
|
|||||||
unset keystore_passphrase
|
unset keystore_passphrase
|
||||||
|
|
||||||
printf "resetting environment..."
|
printf "resetting environment..."
|
||||||
bash reset.sh
|
reset
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo -e "\n\n\033[0;32mdone :3\033[0m\n\n"
|
echo -e "\n\n\033[0;32mdone :3\033[0m\n\n"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ checkcode () {
|
|||||||
if [ $retcode -ne 0 ]; then
|
if [ $retcode -ne 0 ]; then
|
||||||
echo -e "\e[31mERROR!\033[0m Response Code: $retcode"
|
echo -e "\e[31mERROR!\033[0m Response Code: $retcode"
|
||||||
else
|
else
|
||||||
printf ' \e[1;32mOK!\e[0m\n'
|
printf '\e[1;32mOK!\e[0m\n'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ checkcode $?
|
|||||||
printf "making out/verify-everything.sh..."
|
printf "making out/verify-everything.sh..."
|
||||||
cp verify-everything.txt out/verify-everything.sh
|
cp verify-everything.txt out/verify-everything.sh
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "making out/verify-everything.sh executable"...
|
printf "making out/verify-everything.sh executable"
|
||||||
chmod +x out/verify-everything.sh
|
chmod +x out/verify-everything.sh
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user