fix aio.sh

This commit is contained in:
Evgeny
2022-07-15 06:18:33 +03:00
parent 74ecfc231b
commit 8f51666265

View File

@@ -2,7 +2,7 @@
IFS=' IFS='
' '
DIR="$HOME/Dropbox/Приложения/AIO Launcher" DIR="$HOME/Dropbox/Apps/AIO Launcher"
#TASKS_DIR="$DIR/tasks" #TASKS_DIR="$DIR/tasks"
#NOTES_DIR="$DIR/notes" #NOTES_DIR="$DIR/notes"
# Changed in AIO 4.4.2 # Changed in AIO 4.4.2
@@ -11,7 +11,7 @@ NOTES_DIR="$DIR/w.notes"
list() { list() {
i=0 i=0
for file in $DIR/$1/*; do for file in $DIR/w.$1/*; do
i=$((i+1)) i=$((i+1))
echo -n "[$i] " echo -n "[$i] "
@@ -28,7 +28,7 @@ show_time() {
file=$2 file=$2
case $dir in case $dir in
"tasks") "w.tasks")
date=`cat $file | grep '^dueDate' | cut -d ' ' -f 2,3,4` date=`cat $file | grep '^dueDate' | cut -d ' ' -f 2,3,4`
if [ ! -z $date ]; then if [ ! -z $date ]; then
@@ -37,7 +37,7 @@ show_time() {
echo "No time" echo "No time"
fi fi
;; ;;
"notes") "w.notes")
basename $file .txt | cut -d '_' -f 1 | sed 's/-/./g' basename $file .txt | cut -d '_' -f 1 | sed 's/-/./g'
;; ;;
esac esac