#!/bin/sh
-# Copyright (C) 2011-2012 Simon Ruderich
+# Copyright (C) 2011-2013 Simon Ruderich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
;;
*)
# Display directory contents.
- if [ -d "$1" ]; then
- echo "=> Contents of $1:"
+ if test -d "$1"; then
+ printf '=> Contents of %s:\n' "$1"
ls "$1"
exit 0
fi