diff options
Diffstat (limited to '.local/share/bin/decsync2plain')
-rwxr-xr-x | .local/share/bin/decsync2plain | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/share/bin/decsync2plain b/.local/share/bin/decsync2plain index 2bb9be2..5cb7eec 100755 --- a/.local/share/bin/decsync2plain +++ b/.local/share/bin/decsync2plain @@ -33,7 +33,7 @@ fi # auto detect extension if not explicitly provided if [ -z "$EXTENSION" ] ; then - EXTENSION="$(realpath "$PWD" | tr '/' '\n' | sort -r | while read -r folder ; do + EXTENSION="$(realpath "$PWD" | tr '/' '\n' | tac | while read -r folder ; do case "$folder" in calendars|tasks) echo ics ; break ;; contacts) echo vcf ; break ;; |