summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}"