diff --git a/.chezmoiignore b/.chezmoiignore index f90624b..744aae8 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,2 +1,5 @@ /hellotech/ /README.md +{{ if .include_legacy }} +/dot_local/bin/duck-encoder.jar +{{ end }} diff --git a/dot_local/bin/executable_duck-encoder.tmpl b/dot_local/bin/executable_duck-encoder.tmpl index 46c67f1..35b31c7 100755 --- a/dot_local/bin/executable_duck-encoder.tmpl +++ b/dot_local/bin/executable_duck-encoder.tmpl @@ -1,5 +1,7 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env bash -java -jar $(dirname $0)/duck-encoder.jar $* +java -jar "$XDG_DATA_HOME/duck-encoder/duck-encoder.jar" $* + +# vim: ft=bash {{- end }} diff --git a/dot_local/bin/executable_filesize.tmpl b/dot_local/bin/executable_filesize.tmpl index 29cc094..767f99b 100755 --- a/dot_local/bin/executable_filesize.tmpl +++ b/dot_local/bin/executable_filesize.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env perl # Get sorted list files diff --git a/dot_local/bin/executable_get-amazon-art.tmpl b/dot_local/bin/executable_get-amazon-art.tmpl index 03c5297..4c62e06 100755 --- a/dot_local/bin/executable_get-amazon-art.tmpl +++ b/dot_local/bin/executable_get-amazon-art.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env python """ This is a program that attempts to get all the album art from amazon diff --git a/dot_local/bin/executable_mkpodcastplaylist.tmpl b/dot_local/bin/executable_mkpodcastplaylist.tmpl index 46e9f8b..bd213de 100755 --- a/dot_local/bin/executable_mkpodcastplaylist.tmpl +++ b/dot_local/bin/executable_mkpodcastplaylist.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env python3 from functools import partial diff --git a/dot_local/bin/executable_mv-to-docs.tmpl b/dot_local/bin/executable_mv-to-docs.tmpl index e45570f..5874cae 100755 --- a/dot_local/bin/executable_mv-to-docs.tmpl +++ b/dot_local/bin/executable_mv-to-docs.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env python3 ''' diff --git a/dot_local/bin/executable_prefix-date.tmpl b/dot_local/bin/executable_prefix-date.tmpl index 930f1e3..bab01d0 100755 --- a/dot_local/bin/executable_prefix-date.tmpl +++ b/dot_local/bin/executable_prefix-date.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env python3 import os diff --git a/dot_local/bin/executable_send-toy-certs.tmpl b/dot_local/bin/executable_send-toy-certs.tmpl index ca3c28d..a28007c 100755 --- a/dot_local/bin/executable_send-toy-certs.tmpl +++ b/dot_local/bin/executable_send-toy-certs.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env bash sudo systemctl start lego@toy.xbudex.com.service scp /etc/ssl/certificates/toy.xbudex.com.crt toy.xbudex.com:AppData/Local/Syncthing/https-cert.pem diff --git a/dot_local/bin/duck-encoder.jar b/dot_local/share/duck-encoder/duck-encoder.jar similarity index 100% rename from dot_local/bin/duck-encoder.jar rename to dot_local/share/duck-encoder/duck-encoder.jar