diff --git a/.gitmodules b/.gitmodules index 0f9357c..9956552 100644 --- a/.gitmodules +++ b/.gitmodules @@ -17,3 +17,6 @@ [submodule "dotbot_plugins/dotbot-conditional"] path = dotbot_plugins/dotbot-conditional url = https://gitlab.com/gnfzdz/dotbot-conditional.git +[submodule "dotbot_plugins/dotbot-if"] + path = dotbot_plugins/dotbot-if + url = https://github.com/wonderbeyond/dotbot-if.git diff --git a/dotbot_plugins/dotbot-if b/dotbot_plugins/dotbot-if new file mode 160000 index 0000000..2b4dc56 --- /dev/null +++ b/dotbot_plugins/dotbot-if @@ -0,0 +1 @@ +Subproject commit 2b4dc56943741d372881575cfc6e199103157220 diff --git a/install-standalone b/install-standalone index 28ca3df..efcf3de 100755 --- a/install-standalone +++ b/install-standalone @@ -27,6 +27,7 @@ for config in ${@}; do # cmd=("${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" \ # -p "${BASE_DIR}/${META_DIR}/dotbot-yay/yay.py" -c "$configFile") cmd=("${BASE_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" \ + -p "${BASE_DIR}/dotbot_plugins/dotbot-if/if.py" \ -p "${BASE_DIR}/dotbot_plugins/dotbot-apt-get/aptget.py" \ -p "${BASE_DIR}/dotbot_plugins/dotbot-conditional/conditional.py" \ -p "${BASE_DIR}/dotbot_plugins/dotbot-pamac/pamac.py" \ diff --git a/meta/base.yaml b/meta/base.yaml index a1265d1..f5f7905 100644 --- a/meta/base.yaml +++ b/meta/base.yaml @@ -15,9 +15,4 @@ '~/.config' ] -- ifanylinux: - - shell: - - [ - echo "Archlinux test", "Using ifplatform module." - ] diff --git a/meta/tasks/test.yaml b/meta/tasks/test.yaml index 5a63418..8e6ff38 100644 --- a/meta/tasks/test.yaml +++ b/meta/tasks/test.yaml @@ -18,10 +18,11 @@ description: Delete the test file. quiet: true -- ifarch: - - shell: - - - command: echo "Test du plugin ifplatform." - stdout: true - description: Test ifplatform - quiet: false +- if: + - cond: 'test $(distro -j | jq ".id" | grep manjaro)' + met: + - shell: + - echo "Using Manjaro" + unmet: + - shell: + - echo "Not using Manjaro"