We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08f0a8d commit a420e39Copy full SHA for a420e39
1 file changed
lsb_release/src/lsb_release
@@ -209,7 +209,7 @@ EASE ($DISTRIB_CODENAME)"
209
|| [ -n "$(echo $DISTRIB_DESCRIPTION | \
210
sed -e "s/.*$DESCSTR_DELI.*//")" ]
211
then
212
- TMP_DISTRIB_DESC=$(head -1 $FILENAME 2>/dev/null)
+ TMP_DISTRIB_DESC=$(head -n 1 $FILENAME 2>/dev/null)
213
[ -z "$DISTRIB_DESCRIPTION" ] \
214
&& DISTRIB_DESCRIPTION=$TMP_DISTRIB_DESC
215
else
@@ -252,7 +252,7 @@ GetDistribInfo() {
252
-and ! -name $INFO_LSB_FILE \
253
-and -type f \
254
2>/dev/null \
255
- | head -1 ) # keep one of the files found (if many)
+ | head -n 1 ) # keep one of the files found (if many)
256
fi
257
InitDistribInfo $CHECKFIRST
258
0 commit comments