mirror of
https://github.com/systemd/systemd.git
synced 2026-07-22 15:30:54 +00:00
path_id: fix bashism
This commit is contained in:
committed by
Kay Sievers
parent
5ac7a25e85
commit
d7fea966f1
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user