소스 검색

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

Loading…
취소
저장