summaryrefslogtreecommitdiffstats
path: root/bashrc/common
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc/common')
-rw-r--r--bashrc/common/alias.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bashrc/common/alias.sh b/bashrc/common/alias.sh
index 9712a51..3f33006 100644
--- a/bashrc/common/alias.sh
+++ b/bashrc/common/alias.sh
@@ -28,6 +28,6 @@ mktar() {
alias rar=unrar
unzip() {
- [[ -f "./${1}" ]] && return 1
+ [[ ! -r "./${1}" ]] && return 1
mkcd "${1%%.zip}" && unzip "../${1}"
}