diff --git a/dots/bash/.bashrc b/dots/bash/.bashrc index 968af61..b95185d 100644 --- a/dots/bash/.bashrc +++ b/dots/bash/.bashrc @@ -155,7 +155,7 @@ alias nas-unmount-2="sudo umount /mnt/nas" nas() { - if [ -f $1 ] && [ -f $2 ] ; then + if [[ -n $1 ]] && [[ -n $2 ]] ; then if [ $1 == "mount" ] ; then echo "mount /mnt/nas" @@ -169,7 +169,7 @@ nas() { else - echo "sry, bud! i did not understand that one. try: 'nas {mount,umount} {ip}?'" + echo "sry, bud! i did not understand that one. try: 'nas {mount,umount} {ip?}'" fi