hopefully manage fixed now

pull/61/head
Botspot 5 years ago
parent 036e9765d0
commit 808122108b

@ -161,20 +161,23 @@ echo "Button: ${button}"
lxterminal --title='Updating apps...' -e ' lxterminal --title='Updating apps...' -e '
trap "sleep infinity" EXIT trap "sleep infinity" EXIT
DIRECTORY="'${DIRECTORY}'"
mainupdate="'$mainupdate'"
updatable="'$updatable'"
PREIFS="$IFS" PREIFS="$IFS"
IFS="|" IFS="|"
for i in '$updatable' for i in $updatable
do do
"${DIRECTORY}/manage" update "$i" nofetch "${DIRECTORY}/manage" update "$i" nofetch
echo -e "\e[92m${i} was updated successfully.\e[39m" echo -e "\e[92m${i} was updated successfully.\e[39m"
done done
for i in '$mainupdate' for i in $mainupdate
do do
mkdir -p "$(dirname "'${DIRECTORY}'/${i}")" mkdir -p "$(dirname "${DIRECTORY}/${i}")"
#copy new version to apps/ #copy new version to apps/
cp -f "'${DIRECTORY}'/update/pi-apps/${i}" "'${DIRECTORY}'/${i}" || error \"Failed to copy '${DIRECTORY}'/update/pi-apps/"${i}"! cp -f "${DIRECTORY}/update/pi-apps/${i}" "${DIRECTORY}/${i}" || error \"Failed to copy ${DIRECTORY}/update/pi-apps/"${i}"!
echo -e "\e[92m${i} was updated successfully.\e[39m" echo -e "\e[92m${i} was updated successfully.\e[39m"
done done

Loading…
Cancel
Save