Commit e98f7762 authored by Shuah Khan's avatar Shuah Khan Committed by Linus Torvalds

tools: memory-hotplug fix unexpected operator error

on-off-test uses "$UID != 0" to test for root, but $UID is a construct
specific to bash.  Using /bin/sh that isn't bash results in the
following error (due to the "$UID" part expanding to nothing):

  ./ 9: [: !=: unexpected operator

Change Makefile to use bash instead.
Signed-off-by: default avatarShuah Khan <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 1bd702e6
@/bin/sh ./ || echo "memory-hotplug selftests: [FAIL]"
@/bin/bash ./ || echo "memory-hotplug selftests: [FAIL]"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment