Convert old scripts to chezmoi

requires include_legacy data to be set to true:

[data]
include_legacy = true
main
Buddy Sandidge 2 years ago
parent af120aab24
commit 7e92d28f52

@ -1,3 +1,2 @@
/hellotech/
/old-scripts/
/README.md

@ -1,3 +1,5 @@
{{ if .include_legacy }}
#!/usr/bin/env bash
java -jar $(dirname $0)/duck-encoder.jar $*
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/usr/bin/env perl
# Get sorted list files
@ -13,3 +14,4 @@ foreach my $file (@sortedFiles) {
my $fileSortedPrintCmd = "du -s \"$realFileName\"";
print `$fileSortedPrintCmd`;
}
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/usr/bin/env python
"""
This is a program that attempts to get all the album art from amazon
@ -169,3 +170,4 @@ def main():
if __name__ == "__main__":
main()
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/usr/bin/env python3
from functools import partial
@ -117,3 +118,4 @@ if __name__ == '__main__':
parser.add_argument('-d', '--directory', default=Path('.'), type=Path)
args = parser.parse_args()
main(args.directory)
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/usr/bin/env python3
'''
@ -82,3 +83,4 @@ if __name__ == "__main__":
message = ""
main(file_name=file_name, dir_name=dir_name, message=message)
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/usr/bin/env python3
import os
@ -115,3 +116,4 @@ if __name__ == '__main__':
options, args = parser.parse_args()
main(options, args)
{{- end }}

@ -1,4 +1,6 @@
{{ 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
scp /etc/ssl/certificates/toy.xbudex.com.key toy.xbudex.com:AppData/Local/Syncthing/https-key.pem
{{- end }}

@ -1,3 +1,4 @@
{{ if .include_legacy }}
#!/bin/bash
LINES=$(tput lines)
@ -38,3 +39,4 @@ do
sleep 0.1
done
{{- end }}
Loading…
Cancel
Save