diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-06-10 09:33:39 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-06-10 20:17:47 +0200 |
commit | 9606474215748ba68b32fd8b89360d0e165b3651 (patch) | |
tree | f0c118d672415cd177fb5ad93fe26a29c0adc96d /scripts/lib/ptxd_make_world_clean.sh | |
parent | 85b62a4c2df9669799eb250d1c23efac7d1c1fc6 (diff) | |
download | ptxdist-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.sh | 4 |
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 |