m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-19 23:29:33 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-19 23:29:33 +0200
commit78098bab96c0228d700978492152ba3c2a872d2b (patch)
treea36a4fafc22b3af76205882ea224b540a6d82637 /src
parente4d479a3fd695ced2cf7f1e9bdf6f8c3a4ad51ed (diff)
platform: Allow custom platform file before install
The new environment variable, PASSWORD_STORE_PLATFORM_FILE is now used for loading custom platform files while pass lives as src/password-store.sh. After it is installed using 'make install', this environment variable is no longer used, and either no platform file is loaded (if the default platform is acceptable), or a hardcoded also-installed platform file is referenced. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index eb98fad..e350c46 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -177,7 +177,7 @@ tmpdir() {
GETOPT="getopt"
SHRED="shred -f -z"
-# source /path/to/platform-defined-functions
+source "$PASSWORD_STORE_PLATFORM_FILE" 2>/dev/null
#
# END platform definable