chiark / gitweb /
path_id: fix bashism
authorMarco d'Itri <md@Linux.IT>
Tue, 9 May 2006 16:24:43 +0000 (18:24 +0200)
committerKay Sievers <kay.sievers@suse.de>
Tue, 9 May 2006 16:24:43 +0000 (18:24 +0200)
extras/path_id/path_id

index 913c490..4941b88 100644 (file)
@@ -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}"