Whamcloud - gitweb
LU-10505 scripts: avoid version dependent shell script syntax 60/30860/3
authorBob Glossman <bob.glossman@intel.com>
Fri, 12 Jan 2018 21:51:26 +0000 (13:51 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 25 Jan 2018 04:47:53 +0000 (04:47 +0000)
commit1bbd4f4bbe7bd98b7624d8757f3f775e81e9b994
tree51ecdc8be8d8f5bae6135c7022c143446124e5eb
parentecc770c3435b8dc277f7b7606e93f22d2c6a6069
LU-10505 scripts: avoid version dependent shell script syntax

Stop using -1 as an array index in lfs_migrate.
This isn't a valid construct in all supported bash versions.

Test-Parameters: trivial clientdistro=el6.9

Change-Id: I5500af40926e0fdb2a432c6bae7fbbe05097ec7c
Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-on: https://review.whamcloud.com/30860
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/scripts/lfs_migrate