Browse Source

s3.TUP Fix _check_pkg function call (v0.14.2)

- Fix call of the function _check_pkg when the plugin is executed via the s3 menu
- Fix to many parameters on backup toolchain call from s3 menu
pull/41/head
WXbet 5 years ago
parent
commit
6aa7e7a1c6
  1. 6
      support/functions/_plugin_update_toolchain
  2. 2
      support/functions/_toolchain

6
support/functions/_plugin_update_toolchain

@ -3,7 +3,7 @@
#simplebuild_plugin tcupdate
tcupdate(){
pversion="0.14.1";
pversion="0.14.2";
pname="s3.TUP";
pdesc="Plugin $pname v$pversion";
configname="$configdir/plugin_update_toolchain.config";
@ -20,10 +20,10 @@ tcupdate(){
tc="$CMDTC";
#some migrations to upgrade older s3.TUP versions
[ -z "$4" ] && clear && _migrations;
[[ -z "$4" || "$FLAG" -gt "0" ]] && clear && _migrations;
#check/install prerequisites
[ -z "$4" ] && _check_pkg;
[[ -z "$4" || "$FLAG" -gt "0" ]] && _check_pkg;
#backup config
if [ "$CMDTC" == "-r" ] || [ "$CMDTC" == "--reset" ];then

2
support/functions/_toolchain

@ -16,7 +16,7 @@ _toolchain_build_menu(){
tcupdate "$_toolchainname" "" "" "2"
_toolchain_build_menu;;
BACKUP)
tcupdate "-b" "$_toolchainname" "" "" "1"
tcupdate "-b" "$_toolchainname" "" "1"
_toolchain_build_menu;;
EDIT_CONF_DIR)
_gtedit

Loading…
Cancel
Save