From 976cce06ca0e1c0ab8be5c4770db1616c004bc17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=BCbner?= Date: Mon, 29 Aug 2022 12:42:54 +0200 Subject: [PATCH] fetch_translation_tools.sh: fix shellcheck issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes some shellcheck issues in the mentioned script. It precedes #315. Signed-off-by: Martin Hübner --- fetch_translation_tools.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fetch_translation_tools.sh b/fetch_translation_tools.sh index f12cb428..f03760b2 100755 --- a/fetch_translation_tools.sh +++ b/fetch_translation_tools.sh @@ -2,16 +2,16 @@ # fetch the translation-tools from the luci repo -LUCI_REPO="https://github.com/openwrt/luci.git" LUCI_ZIP="https://github.com/openwrt/luci/archive/refs/heads/master.zip" DIR="_tmp_" git clean -df build/ mkdir $DIR -cd $DIR -wget "$LUCI_ZIP" -unzip "master.zip" -mv luci-master/build/* ../build -cd .. +( + cd $DIR || exit 2 + wget "$LUCI_ZIP" + unzip "master.zip" + mv luci-master/build .. +) rm -rf $DIR