summaryrefslogtreecommitdiff
path: root/extras/path_id
diff options
context:
space:
mode:
authorMarco d'Itri <md@Linux.IT>2006-05-09 18:24:43 +0200
committerKay Sievers <kay.sievers@suse.de>2006-05-09 18:24:43 +0200
commitd7fea966f196e2eb5cd87b5e738bd4f39878c548 (patch)
tree6d68959e4fdf0d4bbadebd5d3ba14fcc7ffa7720 /extras/path_id
parent5ac7a25e85729cdac995fd28de48c55487be31c9 (diff)
path_id: fix bashism
Diffstat (limited to 'extras/path_id')
-rw-r--r--extras/path_id/path_id4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/path_id/path_id b/extras/path_id/path_id
index 913c4909f7..4941b88a45 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}"