diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2015-01-07 10:27:12 -0800 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2015-01-07 10:27:12 -0800 |
commit | fdf8b02bcadc7ad36ebacc56a50e00632430edba (patch) | |
tree | f840311e7a8534f6180b1e87b8ea81999ce08b2c | |
parent | 9348f077ca2d319b60f7249d71e3a2d20f85dbbe (diff) | |
download | vm-scalability-fdf8b02bcadc7ad36ebacc56a50e00632430edba.tar.gz |
case-migrate: fix bashism
./case-migrate: 38: ./case-migrate: [[: not found
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rwxr-xr-x | case-migrate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/case-migrate b/case-migrate index 571e97e..c77bdc1 100755 --- a/case-migrate +++ b/case-migrate @@ -35,7 +35,7 @@ kill -INT $pid # the sleep is necessary for umount to succeed # it takes some time to kill the usemem process -while [[ -d /proc/$pid && $(cat /proc/$pid/comm) = usemem ]] +while [ -d /proc/$pid -a "$(cat /proc/$pid/comm)" = 'usemem' ] do sleep 0.1 done |