blob: 5eb8f0e8c4dd8bde5ce8f35f9a511eaad38af4ee [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# The PAGER variable defaults to /usr/bin/less but it may get installed
# to /usr/local/bin/less on a test image, so fix the default
USR_LOCAL="${ROOT_FS_DIR}/usr/local"
if [ ! -f "${USR_LOCAL}/bin/less" ]; then
echo "Nothing to do. less is not installed in /usr/local."
exit 0
fi
sed -i 's:/usr/bin/less:/usr/local/bin/less:g' ${ROOT_FS_DIR}/etc/profile