~ecryptfs/ecryptfs/trunk

« back to all changes in this revision

Viewing changes to src/utils/ecryptfs-setup-private

  • Committer: Dustin Kirkland
  • Date: 2009-11-02 22:04:15 UTC
  • Revision ID: kirkland@canonical.com-20091102220415-9sycsogojtnr3q08
src/utils/ecryptfs-setup-private: fix printing of error strings,
which was broken by the gettext integration, LP: #471725

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
}
82
82
 
83
83
error() {
84
 
        echo `gettext "ERROR:"` "$1" 1>&2
 
84
        echo `gettext "ERROR:"` "$@" 1>&2
85
85
        exit 1
86
86
}
87
87
 
88
88
error_testing() {
89
89
        rm -f "$1" >/dev/null
 
90
        shift
90
91
        /sbin/umount.ecryptfs_private >/dev/null
91
 
        error "$2"
 
92
        error "$@"
92
93
        exit 1
93
94
}
94
95