Skip to content

Commit 868c2a8

Browse files
add link and name to LOG file
1 parent 47806a4 commit 868c2a8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

udroid/src/udroid.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,18 @@ install() {
9595
# Finally to get link
9696
arch=$(dpkg --print-architecture)
9797
link=$(cat $distro_data | jq -r ".$suite.$varient.${arch}url")
98+
LOG "link=$link"
9899
name=$(cat $distro_data | jq -r ".$suite.$varient.Name")
100+
LOG "name=$name"
101+
# final checks
102+
[[ "$link" == "null" ]] && {
103+
ELOG "link not found for $suite:$varient"
104+
echo "ERROR:"
105+
echo "link not found for $suite:$varient"
106+
echo "either the suite or varient is not supported or invalid options supplied"
107+
echo "Report this issue at https://github.com/RandomCoderOrg/ubuntu-on-android/issues"
108+
exit 1
109+
}
99110

100111
# echo "$link + $name"
101112
download "$name" "$link"

0 commit comments

Comments
 (0)