diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-22 21:38:14 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-22 21:38:14 +0200 |
commit | 4b5bb0c7142074ecf5633bd3da69419d6e82106e (patch) | |
tree | 34d65f378c4096f9ab657cb212d630d76be12f58 | |
parent | db78cf8397d485b140d5e9193b422c1261995faa (diff) |
bin/envstore: Always export on 'eval'
-rwxr-xr-x | bin/envstore | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/envstore b/bin/envstore index 20c0b1a..3e3b0f4 100755 --- a/bin/envstore +++ b/bin/envstore @@ -64,12 +64,8 @@ if command == "show": print k + "\t\t" + v print "%i entries" % len(store) elif command == "eval": - opts, args = getopt.getopt(sys.argv[2:], '-e') - opt_export = (('-e', '') in opts) for k, v in store.iteritems(): - if opt_export: - print "export", - print k + "=" + v + print "export " + k + "=" + v elif command == "save": key = get_key() |