lib/boxafe/encfs.rb in boxafe-0.1.5 vs lib/boxafe/encfs.rb in boxafe-0.1.6

- old
+ new

@@ -34,10 +34,10 @@ %/-ovolname=#{Shellwords.escape @options[:volume]}/ end def extpass if @options[:password_file] - %|--extpass="head -n 1 #{Shellwords.escape @options[:password_file]}"| + %|--extpass="head -n 1 #{Shellwords.escape File.expand_path(@options[:password_file], Dir.pwd)}"| elsif @options[:keychain] %*--extpass="security 2>&1 >/dev/null find-generic-password -gl '#{@options[:keychain]}' |grep password|cut -d \\\\\\" -f 2"* else nil end