From 18933a2db9015d2acd669ac879521e02caed0bba Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 19 Apr 2014 23:50:42 +0200 Subject: platform: Auto-detect local platform file In fact, if we're running from the source directory, just auto-detect the platform file in the first place. Signed-off-by: Jason A. Donenfeld --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/password-store.sh b/src/password-store.sh index e350c46..0679942 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -177,7 +177,7 @@ tmpdir() { GETOPT="getopt" SHRED="shred -f -z" -source "$PASSWORD_STORE_PLATFORM_FILE" 2>/dev/null +source "$(dirname "$0")/platform/$(uname | cut -d _ -f 1 | tr '[:upper:]' '[:lower:]').sh" 2>/dev/null # PLATFORM_FUNCTION_FILE # # END platform definable -- cgit v1.2.3