From: Marco d'Itri Date: Tue, 9 May 2006 16:24:43 +0000 (+0200) Subject: path_id: fix bashism X-Git-Tag: 174~2265 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d7fea966f196e2eb5cd87b5e738bd4f39878c548 path_id: fix bashism --- 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}"