summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_clean.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-06-10 09:33:39 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-06-10 20:17:47 +0200
commit9606474215748ba68b32fd8b89360d0e165b3651 (patch)
treef0c118d672415cd177fb5ad93fe26a29c0adc96d /scripts/lib/ptxd_make_world_clean.sh
parent85b62a4c2df9669799eb250d1c23efac7d1c1fc6 (diff)
downloadptxdist-9606474215748ba68b32fd8b89360d0e165b3651.tar.gz
ptxdist-9606474215748ba68b32fd8b89360d0e165b3651.tar.xz
useless use of cat
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_clean.sh')
-rw-r--r--scripts/lib/ptxd_make_world_clean.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_world_clean.sh b/scripts/lib/ptxd_make_world_clean.sh
index ce7907161..36e7711e5 100644
--- a/scripts/lib/ptxd_make_world_clean.sh
+++ b/scripts/lib/ptxd_make_world_clean.sh
@@ -15,7 +15,7 @@ ptxd_make_world_clean() {
if [ -f "${pkg_xpkg_map}" ]; then
echo "Deleting ipks:"
- for name in $(cat "${pkg_xpkg_map}" 2>/dev/null); do
+ for name in $(< "${pkg_xpkg_map}" 2>/dev/null); do
ls "${ptx_pkg_dir}/${name}"_*.ipk
rm -f "${ptx_pkg_dir}/${name}"_*.ipk
done
@@ -23,7 +23,7 @@ ptxd_make_world_clean() {
fi
if [ -n "$(ls "${ptx_state_dir}/${pkg_label}".* 2> /dev/null)" ]; then
echo "Deleting stage files:"
- for name in $(cat "${pkg_xpkg_map}" 2>/dev/null); do
+ for name in $(< "${pkg_xpkg_map}" 2>/dev/null); do
ls "${ptx_state_dir}/${name}".*
rm -f "${ptx_state_dir}/${name}".*
done