Fix octoprint errors when trying to share uploads (#140)
Co-authored-by: Enrique Munoz <enrique.munoz@oracle.com>
This commit is contained in:
6
util.sh
6
util.sh
@@ -172,9 +172,9 @@ share_uploads() {
|
|||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
#Remove Quit and Custom from array, is there a cleaner way?
|
#Remove Quit and Custom from array, is there a cleaner way?
|
||||||
unset 'options[-1]'
|
unset 'INSTANCE_ARR[-1]'
|
||||||
unset 'options[-1]'
|
unset 'INSTANCE_ARR[-1]'
|
||||||
for instance in "${options[@]}"; do
|
for instance in "${INSTANCE_ARR[@]}"; do
|
||||||
$OCTOEXEC --basedir /home/$user/.$instance config set folder.uploads "$opt"
|
$OCTOEXEC --basedir /home/$user/.$instance config set folder.uploads "$opt"
|
||||||
done
|
done
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user