ctdb-scripts: Do not export variables if they are not set
authorAmitay Isaacs <amitay@gmail.com>
Tue, 16 Sep 2014 02:33:26 +0000 (12:33 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 17 Sep 2014 07:55:47 +0000 (09:55 +0200)
commit22257dd4b6d226ee956ede5a847ce0bcb99333be
tree505f7e51e57604c413b6c165b06075adae1fd0cf
parent8509bffdebb7884b765904f8112ff83056511a30
ctdb-scripts: Do not export variables if they are not set

Variables that are not set but exported, may return an empty string
for getenv().  Tested on freebsd.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Wed Sep 17 09:55:47 CEST 2014 on sn-devel-104
ctdb/config/ctdbd_wrapper