Skip to content

Commit e015667

Browse files
Merge pull request #4 from aaronj-ep/resolve-app
Resolve App with Object Tile
2 parents 0a65675 + 188f164 commit e015667

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/dock-cli.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ tile::resolve::url() {
13521352
}
13531353

13541354
tile::resolve() {
1355-
local appPath termPath
1355+
local appPath termPath file repl
13561356
if [[ "${1:0:1}" != "{" ]]; then
13571357
if [[ "${1:0:4}" == "http" ]]; then
13581358
tile::resolve::url "$1"
@@ -1378,7 +1378,17 @@ tile::resolve() {
13781378
fi
13791379
else
13801380
# Already a JSON Object
1381-
echo "$1"
1381+
repl="$1"
1382+
type=$(tile::type "$1")
1383+
case "$type" in
1384+
app*)
1385+
file=$(tile::url "$1")
1386+
if [ ! -e "$url" ]; then
1387+
file=$(app::resolve "$file")
1388+
repl=$(json-obj-add "$1" url "$file")
1389+
fi
1390+
esac
1391+
echo "$repl"
13821392
fi
13831393
}
13841394

0 commit comments

Comments
 (0)