diff --git a/plugins/NerdPack.plg b/plugins/NerdPack.plg index b3f95707..1a961028 100755 --- a/plugins/NerdPack.plg +++ b/plugins/NerdPack.plg @@ -3,9 +3,9 @@ - + - + @@ -17,7 +17,13 @@ ##&name; -###&version; +###2017.06.17 +- combine delete and uninstall switch +- add cleanup of old packages +- add support for azure and gray themes +- change to separate repo +- update tablesorter +###2017.02.06 - fix support link - add perl toggle for vim ###2017.01.31 @@ -29,7 +35,7 @@ - fix: not creating package directory ###2016.10.08 - fix: false positive of installed packages -- fix: packagemanager bug if cookies are missing +- fix: packagemanager bug if cookies are missing ###2016.09.18 - fix: packagemanager array errors ###2016.09.16 @@ -203,21 +209,16 @@ else mv &plgPATH;/packages/*txz &plgPATH;/packages/6.1 fi - if [[ $VER == 6.3 ]]; then - if [ ! -d &plgPATH;/packages/$VER ]; then - 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 - echo "Copying package files..." - cp &plgPATH;/packages/6.2/* &plgPATH;/packages/$VER/ - fi - fi - fi - fi - if [ ! -d &plgPATH;/packages/$VER ]; then mkdir -p &plgPATH;/packages/$VER + OLD="$(echo "${VER} - 0.1" | bc)" + if [ -d &plgPATH;/packages/$OLD ]; then + count2=`ls -1 /boot/config/plugins/NerdPack/packages/${OLD}/*.txz 2>/dev/null | wc -l` + if [ $count2 != 0 ]; then + echo "Copying package files..." + cp &plgPATH;/packages/${OLD}/* &plgPATH;/packages/${VER}/ + fi + fi fi upgradepkg --install-new &plgPATH;/&plgNAME;.txz