From dcf5a5c2f47ec95c6b2976a79257fb9187d0d101 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 5 Dec 2016 11:15:03 -0400 Subject: [PATCH] chore: move `bower.json` removal after popd in `dependencies-bower.sh` (#934) The reason for this change is to make things more explicit. See: https://github.com/resin-io/etcher/pull/923#discussion_r90571316 Signed-off-by: Juan Cruz Viotti --- scripts/unix/dependencies-bower.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/unix/dependencies-bower.sh b/scripts/unix/dependencies-bower.sh index 04626124..f71540fe 100755 --- a/scripts/unix/dependencies-bower.sh +++ b/scripts/unix/dependencies-bower.sh @@ -59,8 +59,8 @@ if [ -n "$ARGV_PREFIX" ]; then cp "$PWD/bower.json" "$ARGV_PREFIX" pushd "$ARGV_PREFIX" bower install $INSTALL_OPTS - rm bower.json popd + rm "$ARGV_PREFIX/bower.json" else bower install $INSTALL_OPTS fi