diff options
Diffstat (limited to 'src/oh-installfiles.sh')
-rw-r--r-- | src/oh-installfiles.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/oh-installfiles.sh b/src/oh-installfiles.sh index 41e9e27..e0da7c8 100644 --- a/src/oh-installfiles.sh +++ b/src/oh-installfiles.sh @@ -19,6 +19,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +. @@LIBDIR@@/opkhelper/messages + print_usage() { printf 'Usage: %s pkgname...\n' "$1" @@ -37,7 +39,7 @@ IFS=' # Iterate over packages. while [ ${#} -gt 0 ]; do - printf 'oh-installfiles: Installing files for package "%s"...\n' "${1}" + oh_info 'Installing files for package "%s"...' "${1}" mkdir ${1}.data || exit 1 chmod 755 ${1}.data || exit 1 @@ -60,8 +62,7 @@ done # TODO: This should be part of some kind of warnings/lint framework/script and # allow the user to drop to a debug shell before cleanup. if [ "$(find dest -type f | wc -l)" -gt 0 ]; then - printf 'oh-installfiles: Warning: %s\n' \ - 'Files remain in installation directory.' >&2 + oh_warn 'Files remain in installation directory' fi # Reset the IFS. |