chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c7a84d7
)
[PATCH] cdsymlinks.sh: trivial fix, the variable is initialized to '', not 0
author
md@Linux.IT
<md@Linux.IT>
Sun, 6 Feb 2005 00:00:04 +0000
(
01:00
+0100)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 06:24:20 +0000
(23:24 -0700)
extras/cdsymlinks.sh
patch
|
blob
|
history
diff --git
a/extras/cdsymlinks.sh
b/extras/cdsymlinks.sh
index e99be2e544d836d7dd0882cf4a2afa368240454c..b2702e0063c3323119846862d396ad9cee23b2b9 100644
(file)
--- a/
extras/cdsymlinks.sh
+++ b/
extras/cdsymlinks.sh
@@
-159,7
+159,7
@@
output () {
COUNT=$(($COUNT+1))
done
# If the target dev ($1) is the current dev ($i), we output its name.
COUNT=$(($COUNT+1))
done
# If the target dev ($1) is the current dev ($i), we output its name.
- if test $(($NUMBERED_LINKS)) -ne 0 || test "$COUNT"
-eq 0
; then
+ if test $(($NUMBERED_LINKS)) -ne 0 || test "$COUNT"
= ''
; then
test "$i" = "$1" && echo -n " $2$COUNT"
fi
# If the link isn't in our "existing links" list, add it and increment
test "$i" = "$1" && echo -n " $2$COUNT"
fi
# If the link isn't in our "existing links" list, add it and increment