Skip to content

Commit a420e39

Browse files
committed
Stop using deprecated form of head command.
1 parent 08f0a8d commit a420e39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lsb_release/src/lsb_release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ EASE ($DISTRIB_CODENAME)"
209209
|| [ -n "$(echo $DISTRIB_DESCRIPTION | \
210210
sed -e "s/.*$DESCSTR_DELI.*//")" ]
211211
then
212-
TMP_DISTRIB_DESC=$(head -1 $FILENAME 2>/dev/null)
212+
TMP_DISTRIB_DESC=$(head -n 1 $FILENAME 2>/dev/null)
213213
[ -z "$DISTRIB_DESCRIPTION" ] \
214214
&& DISTRIB_DESCRIPTION=$TMP_DISTRIB_DESC
215215
else
@@ -252,7 +252,7 @@ GetDistribInfo() {
252252
-and ! -name $INFO_LSB_FILE \
253253
-and -type f \
254254
2>/dev/null \
255-
| head -1 ) # keep one of the files found (if many)
255+
| head -n 1 ) # keep one of the files found (if many)
256256
fi
257257
InitDistribInfo $CHECKFIRST
258258
fi

0 commit comments

Comments
 (0)