浏览代码

improved mpass and munzip

master
mort 8 年前
父节点
当前提交
78e18b2043
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1
    2
      bin/mpass
  2. 2
    0
      bin/munzip

+ 1
- 2
bin/mpass 查看文件

@@ -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 查看文件

@@ -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

正在加载...
取消
保存