summaryrefslogtreecommitdiff
path: root/packages/stage-manager/files
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-06-15 07:41:45 +0000
committerKoen Kooi <koen@openembedded.org>2008-06-15 07:41:45 +0000
commit899f1198e092fc151f4373c961d21d2f15e285f2 (patch)
treeb0b62af6463942080d6ed80e7696931a730d27f6 /packages/stage-manager/files
parent853b1bc69783c42dd0f5648ac9c65008c3063c5b (diff)
stagemanager native: replace 'head -1' with 'head -n1'
Diffstat (limited to 'packages/stage-manager/files')
-rwxr-xr-xpackages/stage-manager/files/stage-manager-ipkg10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/stage-manager/files/stage-manager-ipkg b/packages/stage-manager/files/stage-manager-ipkg
index 7bcf85a5fa..2e626d8f50 100755
--- a/packages/stage-manager/files/stage-manager-ipkg
+++ b/packages/stage-manager/files/stage-manager-ipkg
@@ -33,7 +33,7 @@ ipkg_src_names() {
ipkg_src_byname() {
local src="$1"
- ipkg_srcs $src | head -1
+ ipkg_srcs $src | head -n1
}
ipkg_dests() {
@@ -58,16 +58,16 @@ ipkg_state_dirs() {
}
ipkg_dest_default() {
- ipkg_dests_all | head -1
+ ipkg_dests_all | head -n1
}
ipkg_dest_default_name() {
- ipkg_dest_names | head -1
+ ipkg_dest_names | head -n1
}
ipkg_dest_byname() {
local dest="$1"
- ipkg_dests $dest | head -1
+ ipkg_dests $dest | head -n1
}
ipkg_option() {
@@ -975,7 +975,7 @@ ipkg_install_wanted() {
ipkg_upgrade_pkg() {
local pkg="$1"
- local avail_ver=`ipkg_info $pkg Version | ipkg_extract_value | head -1`
+ local avail_ver=`ipkg_info $pkg Version | ipkg_extract_value | head -n1`
is_installed=
for dest_name in `ipkg_dest_names`; do