Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
runltp, runltplite.sh: Fix bashism.
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
  • Loading branch information
metan-ucw committed Mar 24, 2014
1 parent bc63a8f commit e8776ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions runltp
Expand Up @@ -995,10 +995,8 @@ cleanup()

LTP_SCRIPT="$(basename $0)"

if [[ "$LTP_SCRIPT" == "runltp" ]]; then
if [ "$LTP_SCRIPT" = "runltp" ]; then
trap "cleanup" 0
setup
main "$@"
fi

#vim: syntax=sh
2 changes: 1 addition & 1 deletion runltplite.sh
Expand Up @@ -37,7 +37,7 @@
#
#

source "$(dirname $0)/runltp"
. "$(dirname $0)/runltp"

setup()
{
Expand Down

0 comments on commit e8776ea

Please sign in to comment.