Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use the PBI_ICONURL variable in a PBI, if it exists, when updating me…

…ta-file
  • Loading branch information...
commit 191425dd808de3a2b239517af958af1bb1f7528c 1 parent 90ee280
Kris Moore kmoore134 authored

Showing 1 changed file with 8 additions and 1 deletion. Show diff stats Hide diff stats

  1. +8 1 src-sh/pbi-manager10/pbi-manager
9 src-sh/pbi-manager10/pbi-manager
@@ -2048,7 +2048,7 @@ do_pbi_mt_syncpbi()
2048 2048 PBI_FILENAME="${PBI_MT_PBIFILE}"
2049 2049 load_info_from_header
2050 2050
2051   - mFlags="add --app -i \"http://images.pbidir.com/progicons/generic.png\""
  2051 + mFlags="add --app"
2052 2052 if [ -n "$PBI_PROGAUTHOR" ] ; then mFlags="$mFlags -a \"${PBI_PROGAUTHOR}\""; fi
2053 2053 if [ -n "$PBI_CATEGORY" ] ; then mFlags="$mFlags -c \"${PBI_CATEGORY}\""; fi
2054 2054 if [ -n "$PBI_LICENSE" ] ; then mFlags="$mFlags -l \"${PBI_LICENSE}\""; fi
@@ -2061,6 +2061,13 @@ do_pbi_mt_syncpbi()
2061 2061 if [ -n "$PBI_PROGTYPE" ] ; then mFlags="$mFlags -t \"$PBI_PROGTYPE\""; fi
2062 2062 if [ "$PBI_REQUIRESROOT" = "YES" ] ; then mFlags="$mFlags -r"; fi
2063 2063
  2064 + # Set the icon URL, or make it generic if it doesn't exist
  2065 + if [ -n "$PBI_ICONURL" ] ; then
  2066 + mFlags="$mFlags -i \"${PBI_ICONURL}\""
  2067 + else
  2068 + mFlags="$mFlags -i \"http://images.pbidir.com/progicons/generic.png\""
  2069 + fi
  2070 +
2064 2071 # Add the app
2065 2072 echo "${0} ${mFlags} -n \"${PBI_PROGNAME}\" `realpath ${PBI_MT_METAFILE}`" >/tmp/.pbiCmd.$$
2066 2073 chmod 755 /tmp/.pbiCmd.$$

0 comments on commit 191425d

Please sign in to comment.
Something went wrong with that request. Please try again.