NOREV: Why did I revert this commit?

main
Kamal Curi 2 years ago
parent 4bfebce365
commit 5584db1db1

@ -3,11 +3,23 @@
#!/usr/bin/env bash #!/usr/bin/env bash
version="1.21" version="1.31"
echo "Steelbox V$version, Copyright (C) 2022 Kamal Curi" echo "Steelbox V$version, Copyright (C) 2022 Kamal Curi"
echo "Steelbox comes with ABSOLUTELY NO WARRANTY; For license details, read the manual in doc/" echo "Steelbox comes with ABSOLUTELY NO WARRANTY; For license details, read the manual in doc/"
if [ -f /tmp/steelbox.pid ]
then
echo "There is a temporary PID file in /tmp/, which means that"
echo "either there's an open instance of steelbox, or it"
echo "hasn't properly quit. To avoid manipulating the password"
echo "file improperly, steelbox will not open. If you're sure"
echo "there are no open steelbox processes, remove"
echo "/tmp/steelbox.pid and try again"
exit 1
else
echo $$ > steelbox.pid
fi
if [ -f $HOME/.pasfile.csv.gpg ] if [ -f $HOME/.pasfile.csv.gpg ]
then then
@ -27,6 +39,8 @@ fi
python3 /opt/steelbox.py $version python3 /opt/steelbox.py $version
rm /tmp/steelbox.pid
gpg -c --no-symkey-cache --cipher-algo AES256 $HOME/.pasfile.csv gpg -c --no-symkey-cache --cipher-algo AES256 $HOME/.pasfile.csv
if [ $? -gt 0 ] if [ $? -gt 0 ]

Loading…
Cancel
Save