File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
plugin/source/dynamix.unraid.net Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,18 @@ mkdir -p "${tmpdir}"
2424# shellcheck disable=SC2046
2525cp --parents -f $( find . -type f ! \( -iname " .DS_Store" -o -iname " pkg_build.sh" -o -iname " makepkg" -o -iname " explodepkg" -o -iname " sftp-config.json" \) ) " ${tmpdir} /"
2626cd " ${tmpdir} " || exit 1
27- if [[ " ${env} " == " staging" ]]; then
27+ if [[ -n " ${PR} " ]]; then
28+ # create README.md for staging plugin
29+ mv " ${tmpdir} /usr/local/emhttp/plugins/dynamix.unraid.net" " ${tmpdir} /usr/local/emhttp/plugins/dynamix.unraid.net.staging"
30+ sed -i " s@\*\*Unraid Connect\*\*@\*\*Unraid Connect (PR #${PR} )\*\*@" " ${tmpdir} /usr/local/emhttp/plugins/dynamix.unraid.net.staging/README.md"
31+ sed -i
" [email protected] @dynamix.unraid.net.staging.plg@" " ${tmpdir} /usr/local/emhttp/plugins/dynamix.my.servers/Connect.page" 32+ elif [[ " ${env} " == " staging" ]]; then
2833 # create README.md for staging plugin
2934 mv " ${tmpdir} /usr/local/emhttp/plugins/dynamix.unraid.net" " ${tmpdir} /usr/local/emhttp/plugins/dynamix.unraid.net.staging"
3035 sed -i " s@\*\*Unraid Connect\*\*@\*\*Unraid Connect \(staging\)\*\*@" " ${tmpdir} /usr/local/emhttp/plugins/dynamix.unraid.net.staging/README.md"
3136 sed -i
" [email protected] @dynamix.unraid.net.staging.plg@" " ${tmpdir} /usr/local/emhttp/plugins/dynamix.my.servers/Connect.page" 3237fi
38+
3339chmod 0755 -R .
3440sudo chown root:root -R .
3541sudo " ${MAINDIR} /source/dynamix.unraid.net/makepkg" -l y -c y " ${txzfile} "
You can’t perform that action at this time.
0 commit comments