ctdb-scripts: Update script boilerplate to avoid shellcheck warnings
authorMartin Schwenke <martin@meltin.net>
Wed, 29 Jun 2016 07:36:05 +0000 (17:36 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 6 Jul 2016 02:28:09 +0000 (04:28 +0200)
commitf227c26178c2eaf3fae49f32a90ec905f85005f4
treef03ba950aceb801a7cad29fa6957c98868673454
parent850863a15ef462b4df53d5bdad3c80dbaf569089
ctdb-scripts: Update script boilerplate to avoid shellcheck warnings

* Assign the output of dirname to temporary variable to avoid word
  splitting when directory name contains whitespace

* Drop export of CTDB_BASE to avoid masking broken return value -
  functions file does the export anyway

* Quote path when including functions file

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
23 files changed:
ctdb/config/ctdb-crash-cleanup.sh
ctdb/config/debug-hung-script.sh
ctdb/config/debug_locks.sh
ctdb/config/events.d/00.ctdb
ctdb/config/events.d/01.reclock
ctdb/config/events.d/05.system
ctdb/config/events.d/06.nfs
ctdb/config/events.d/10.external
ctdb/config/events.d/10.interface
ctdb/config/events.d/11.natgw
ctdb/config/events.d/11.routing
ctdb/config/events.d/13.per_ip_routing
ctdb/config/events.d/20.multipathd
ctdb/config/events.d/31.clamd
ctdb/config/events.d/40.vsftpd
ctdb/config/events.d/41.httpd
ctdb/config/events.d/49.winbind
ctdb/config/events.d/50.samba
ctdb/config/events.d/60.nfs
ctdb/config/events.d/70.iscsi
ctdb/config/events.d/91.lvs
ctdb/config/events.d/99.timeout
ctdb/config/statd-callout