scale-catalog/functions/misc.sh

19 lines
284 B
Bash
Raw Normal View History

2022-07-25 02:29:58 +00:00
#!/bin/bash
sync(){
2022-12-27 11:02:56 +00:00
echo_sync+=("🅂 🅈 🄽 🄲")
2022-07-26 23:43:06 +00:00
cli -c 'app catalog sync_all' &> /dev/null && echo_sync+=("Catalog sync complete")
2022-07-26 06:32:37 +00:00
2022-12-27 11:02:56 +00:00
#Dump the echo_array, ensures all output is in a neat order.
2022-07-26 06:32:37 +00:00
for i in "${echo_sync[@]}"
do
echo -e "$i"
done
2022-07-31 18:56:50 +00:00
echo
echo
2022-07-25 02:29:58 +00:00
}
export -f sync
2022-12-26 21:36:35 +00:00
}