Browse Source

improved mpass and munzip

master
mort 8 years ago
parent
commit
78e18b2043
2 changed files with 3 additions and 2 deletions
  1. 1
    2
      bin/mpass
  2. 2
    0
      bin/munzip

+ 1
- 2
bin/mpass View File

@@ -77,8 +77,7 @@ elif [ "$1" = "get" ]; then
if [ ! -s "$TMP_IN" ]; then
tryerr "Pasword doesn't exist."
fi

echo -n "$enc" >> "$TMP_IN"
echo "" >> "$TMP_IN"

getpass | openssl enc -aes-256-cbc -a -d -in "$TMP_IN" -out "$TMP_OUT" -pass stdin
tryerr

+ 2
- 0
bin/munzip View File

@@ -9,6 +9,8 @@ if [ "$1" = *.tar.gz ]; then
tar xzf "$1"
elif [ "$1" = *.tar.bz2 ]; then
tar jxf "$1"
elif [ "$1" = *.tar.xz ]; then
tar xJf "$1"
elif [ "$1" = *.zip ]; then
unzip "$1"
else

Loading…
Cancel
Save