From 39f0bb370f2b7c74fc5f31640eaa5423e2244afd Mon Sep 17 00:00:00 2001 From: dmacias72 Date: Sun, 9 Oct 2016 07:51:55 -0600 Subject: [PATCH] fix directory creation --- plugins/NerdPack.plg | 10 ++++++---- plugins/NerdPack.xml | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/plugins/NerdPack.plg b/plugins/NerdPack.plg index c236a701..e554388b 100755 --- a/plugins/NerdPack.plg +++ b/plugins/NerdPack.plg @@ -3,7 +3,7 @@ - + @@ -16,6 +16,8 @@ +###2016.10.09 +- fix: not creating package directory ###2016.10.08 - fix: false positive of installed packages - fix: packagemanager bug if cookies are missing @@ -194,7 +196,7 @@ else count=`ls -1 /boot/config/plugins/NerdPack/packages/*.txz 2>/dev/null | wc -l` if [ $count != 0 ]; then if [ ! -d &plgpath;/packages/6.1 ]; then - mkdir &plgpath;/packages/6.1 + mkdir -p &plgpath;/packages/6.1 fi echo "Moving package files..." mv &plgpath;/packages/*txz &plgpath;/packages/6.1 @@ -202,7 +204,7 @@ else if [[ $VER == 6.3 ]]; then if [ ! -d &plgpath;/packages/$VER ]; then - mkdir &plgpath;/packages/$VER + mkdir -p &plgpath;/packages/$VER if [ -d &plgpath;/packages/6.2 ]; then count2=`ls -1 /boot/config/plugins/NerdPack/packages/6.2/*.txz 2>/dev/null | wc -l` if [ $count2 != 0 ]; then @@ -214,7 +216,7 @@ else fi if [ ! -d &plgpath;/packages/$VER ]; then - mkdir &plgpath;/packages/$VER + mkdir -p &plgpath;/packages/$VER fi upgradepkg --install-new &plgpath;/&plgname;.txz diff --git a/plugins/NerdPack.xml b/plugins/NerdPack.xml index 3e420adf..43ddec28 100644 --- a/plugins/NerdPack.xml +++ b/plugins/NerdPack.xml @@ -11,8 +11,10 @@ This plugin allows installation of extra packages, mostly CLI, for advanced user http://lime-technology.com/forum/index.php?topic=37541.0 https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.png -2016-10-08 +2016-10-09 +###2016.10.09 +- fix: not creating package directory ###2016.10.08 - fix: false positive of installed packages - fix: packagemanager bug if cookies are missing