diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-11-14 22:57:59 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-11-14 22:57:59 -0200 |
commit | bf99499751482886833ad7ce77930ba9a12b8a86 (patch) | |
tree | fa0626b6758a3dd0644d1f701d8b6349250b1ace /lib/keyringer/functions | |
parent | 4705d861b56fbec26ac0dee8749b74dade3c25c1 (diff) | |
download | keyringer-bf99499751482886833ad7ce77930ba9a12b8a86.tar.gz keyringer-bf99499751482886833ad7ce77930ba9a12b8a86.tar.bz2 |
Support for encrypting a whole tree (closes #21)
Diffstat (limited to 'lib/keyringer/functions')
-rwxr-xr-x | lib/keyringer/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions index 4c06198..dd31676 100755 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -431,10 +431,10 @@ function keyringer_get_new_file { fi # Sanitize and complete file name - FILE="`echo $FILE | sed -e s/[^A-Za-z0-9.\/\-]/_/g`" + FILE="`echo $FILE | sed -e 's/[^A-Za-z0-9.\/\-]/_/g'`" # Warn user about file name change - if [ "`basename $*`" != "`basename $FILE`" ]; then + if [ "`basename "$*"`" != "`basename $FILE`" ]; then echo "Sanitizing destination filename to `basename $FILE`" fi |