git clone before making app list

pull/39/head
Botspot 5 years ago
parent 0726c57758
commit 6a1bfdaa62

@ -163,6 +163,9 @@ elif [ "$1" == 'check-all' ];then
installedonly=0 installedonly=0
fi fi
rm -rf "${DIRECTORY}/update" && mkdir "${DIRECTORY}/update" && cd "${DIRECTORY}/update" || error "failed to enter the update directory!"
git clone "$(cat "${DIRECTORY}/etc/git_url")" || error "failed to clone repository!"
#generate entire app list, combine local apps and online apps to one list #generate entire app list, combine local apps and online apps to one list
applist="$(echo -e "$(ls "${DIRECTORY}/update/pi-apps/apps")\n$(ls "${DIRECTORY}/apps")" | sort | uniq)" applist="$(echo -e "$(ls "${DIRECTORY}/update/pi-apps/apps")\n$(ls "${DIRECTORY}/apps")" | sort | uniq)"
if [ $installedonly == 1 ];then if [ $installedonly == 1 ];then
@ -185,9 +188,6 @@ elif [ "$1" == 'check-all' ];then
#echo "App list: $applist" 1>&2 #echo "App list: $applist" 1>&2
rm -rf "${DIRECTORY}/update" && mkdir "${DIRECTORY}/update" && cd "${DIRECTORY}/update" || error "failed to enter the update directory!"
git clone "$(cat "${DIRECTORY}/etc/git_url")" || error "failed to clone repository!"
updatable='' updatable=''
PREIFS="$IFS" PREIFS="$IFS"
IFS="|" IFS="|"

Loading…
Cancel
Save