# ####################### Replace REC2 ####
REC2="60914D29C01C81F1"
# ####################### ####### #### ####
bash myscript.sh 2
(RESULT)
$ bash myscript.sh 2
Is this WEEK W02 ? [y/N] y
~/RESULT ~/git/os242/TXT
tar cfJ myW02.tar.xz W02/
gpg --armor --output myW02.tar.xz.asc --encrypt --recipient 63FB12B215403B20 --recipient 60914D29C01C81F1 myW02.tar.xz
~/git/os242/TXT
Check and move /home/cbkadal/RESULT/myW02.tar.xz.asc...
renamed '/home/cbkadal/RESULT/myW02.tar.xz.asc' -> './myW02.tar.xz.asc'
rm -f SHA256SUM SHA256SUM.asc
sha256sum my*.asc my*.txt my*.sh > SHA256SUM
# ################ CHECKSUM ###### #########
sha256sum -c SHA256SUM
myW02.tar.xz.asc: OK
mylog.txt: OK
mypubkey.txt: OK
myrank.txt: OK
myupdate.txt: OK
myscript.sh: OK
# ################# SIGNING CHECKSUM ######### ######### ########
gpg --output SHA256SUM.asc --armor --sign --local-user 60914D29C01C81F1 --detach-sign SHA256SUM
# ################# VERIFY ######### ######### ######### ########
gpg --verify SHA256SUM.asc SHA256SUM
gpg: Signature made Sun 08 Sep 2024 14:14:44 WIB
gpg: using RSA key CE17E9DB8AD01794E3BAE98B60914D29C01C81F1
gpg: Good signature from "Cicak Bin Kadal (CBK) <cbkadal@localhost>" [ultimate]
==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
==== ==== ==== ATTN: is this WEEK W02 ?? === ==== ==== ====
==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====