From d7fea966f196e2eb5cd87b5e738bd4f39878c548 Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Tue, 9 May 2006 18:24:43 +0200 Subject: [PATCH] path_id: fix bashism --- extras/path_id/path_id | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/path_id/path_id b/extras/path_id/path_id index 913c4909f..4941b88a4 100644 --- a/extras/path_id/path_id +++ b/extras/path_id/path_id @@ -356,7 +356,7 @@ handle_device () { subsys="`pwd -P`" cd "$OPWD" subsys="${subsys##*/}" - if [ "$subsys" == "block" ]; then + if [ "$subsys" = "block" ]; then # parent is "block", it's a partition, move one up full_sysfs_path="${full_sysfs_path%/*}" fi @@ -438,7 +438,7 @@ handle_device () { ;; esac done - if [ "$TYPE" == "scsi_tape" ] ; then + if [ "$TYPE" = "scsi_tape" ] ; then devname=${full_sysfs_path##*/} rewind="${devname%%st*}" mode="${devname##*st}" -- 2.30.2