Skip to content

Commit

Permalink
Expand glob for removal and pass to sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Sep 13, 2019
1 parent 84567aa commit ea0aa3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/book_library_clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ crates_to_clean=$(

for crate in $crates_to_clean
do
echo Running rm -rf "target/debug/deps/lib${crate}-*" "target/debug/deps/${crate}-*"
rm -rf "target/debug/deps/lib${crate}-*" "target/debug/deps/${crate}-*"
echo Running \""rm -rf target/debug/deps/lib${crate}-* target/debug/deps/${crate}-*"\"
sh -c "rm -rf target/debug/deps/lib${crate}-* target/debug/deps/${crate}-*"
done

[ $changed ] && shopt -u nullglob; unset changed
Expand Down

0 comments on commit ea0aa3a

Please sign in to comment.