selftests: zram: use bash as script uses bash syntax
PATCH 1/1 selftests: zram: use bash as script uses bash syntax
The zram_lib.sh script uses bash-specific syntax, so the shebang must be /bin/bash instead of /bin/sh.
Signed-off-by Kathara Sasikumar <[email protected]>
--- tools/testing/selftests/zram/zram_lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/zram/zram_lib.sh +1 -1
@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (c) 2015 Oracle and/or its affiliates. All Rights Reserved. #
Signature · 1 line
2.51.0
Shuah Khan
maintainerQuoted 2 lines · Kathara Sasikumar
The
zram_lib.shscript uses bash-specific syntax, so the shebang must be/bin/bashinstead of/bin/sh.
What errors are you seeing without this change?
Quoted 11 lines
Signed-off-by Kathara Sasikumar <[email protected]>--- tools/testing/selftests/zram/zram_lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/zram/zram_lib.sh +0
-0
tools/testing/selftests/zram/zram_lib.sh line 4
Quoted 5 lines
tools/testing/selftests/zram/zram_lib.sh +1
-1@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (c) 2015 Oracle and/or its affiliates. All Rights Reserved. #
thanks,
-- Shuah