Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 1 | From 5a9e09dc5de833db11607530351cd87cecbfd17e Mon Sep 17 00:00:00 2001 |
| 2 | From: Roy Li <rongqing.li@windriver.com> |
| 3 | Date: Thu, 22 Jun 2017 06:32:30 +0000 |
| 4 | Subject: [PATCH 2/2] auto.diod.in: remove bashisms |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Roy Li <rongqing.li@windriver.com> |
| 9 | --- |
| 10 | scripts/auto.diod.in | 14 +++++++------- |
| 11 | 1 file changed, 7 insertions(+), 7 deletions(-) |
| 12 | |
| 13 | diff --git a/scripts/auto.diod.in b/scripts/auto.diod.in |
| 14 | index f63e004..4d5fc3a 100755 |
| 15 | --- a/scripts/auto.diod.in |
| 16 | +++ b/scripts/auto.diod.in |
| 17 | @@ -1,4 +1,4 @@ |
| 18 | -#!/bin/bash |
| 19 | +#!/bin/sh |
| 20 | # |
| 21 | # auto.diod - executable automounter map for diod file systems |
| 22 | # |
| 23 | @@ -41,15 +41,15 @@ dcatopts="${DIOD_TIMEOUT:+-t $DIOD_TIMEOUT}" |
| 24 | for server in $DIOD_SERVERS; do |
| 25 | $DIOD_DIODCAT -s $server $dcatopts exports | awk '{print $1}' |\ |
| 26 | while read path; do |
| 27 | - if [ "$path" == "/" ]; then |
| 28 | - if [ "$key" == "ROOT" ]; then |
| 29 | + if [ "$path" = "/" ]; then |
| 30 | + if [ "$key" = "ROOT" ]; then |
| 31 | echo "$prefix $server:$path" |
| 32 | exit 0 |
| 33 | fi |
| 34 | - elif [ "$key" == "$(echo $path|sed -e's/^\///' -e's/\//./g')" ] \ |
| 35 | - || [ "$key" == "$(echo $path|sed -e's/^\///' -e's/\//_/g')" ] \ |
| 36 | - || [ "$key" == "$(echo $path|sed -e's/^\///' -e's/\//-/g')" ] \ |
| 37 | - || [ "$key" == "$(basename $path)" ]; then |
| 38 | + elif [ "$key" = "$(echo $path|sed -e's/^\///' -e's/\//./g')" ] \ |
| 39 | + || [ "$key" = "$(echo $path|sed -e's/^\///' -e's/\//_/g')" ] \ |
| 40 | + || [ "$key" = "$(echo $path|sed -e's/^\///' -e's/\//-/g')" ] \ |
| 41 | + || [ "$key" = "$(basename $path)" ]; then |
| 42 | echo "$prefix $server:$path" |
| 43 | exit 0 |
| 44 | fi |
| 45 | -- |
| 46 | 2.11.0 |
| 47 | |