summaryrefslogtreecommitdiff
path: root/bin/envstore
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-09 11:36:52 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-09 11:36:52 +0200
commit376333b39247839499fb90e95f3e1db944a2a0b9 (patch)
treef62fb83bd6fcbddcb700085c46d7e635c9fdfd29 /bin/envstore
parent522fddc75ee774e9afb2b05658876e9f2f5935e0 (diff)
envstore: Change the store file by setting ENVSTORE_FILE
Diffstat (limited to 'bin/envstore')
-rwxr-xr-xbin/envstore13
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/envstore b/bin/envstore
index f0b7b98..42284a0 100755
--- a/bin/envstore
+++ b/bin/envstore
@@ -7,7 +7,7 @@ use warnings;
use Pod::Usage;
use Storable 'nstore', 'retrieve';
-my $store_file = "/tmp/envstore-$>";
+my $store_file = $ENV{ENVSTORE_FILE} || "/tmp/envstore-$>";
my %store;
my $action = shift;
my $arg = shift;
@@ -131,6 +131,17 @@ Remove I<variable> from store
=back
+=head1 ENVIRONMENT
+
+=over
+
+=item B<ENVSTORE_FILE>
+
+The file in which the environment parameters are stored. By default
+F</tmp/envstore-$UID>
+
+=back
+
=head1 AUTHOR
B<envstore> was written by Daniel Friesel E<lt>derf@derf.homelinux.orgE<gt>