File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
scriptmodules/supplementary Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ function _config_files_skyscraper() {
66
66
' peas.json'
67
67
' platforms_idmap.csv'
68
68
' resources'
69
+ ' supplementary/bash-completion/Skyscraper.bash'
69
70
' screenscraper_platforms.json'
70
71
' tgdb_developers.json'
71
72
' tgdb_genres.json'
@@ -217,13 +218,12 @@ function configure_skyscraper() {
217
218
}
218
219
219
220
function _init_config_skyscraper() {
220
-
221
221
local config_files=($( _config_files_skyscraper) )
222
222
223
223
# assume new(er) install
224
224
mkdir -p .pristine_cfgs
225
225
for cf in " ${config_files[@]} " ; do
226
- bn=${cf#*/ } # cut off cache/
226
+ bn=${cf## */ } # cut off all folders
227
227
if [[ -e " $md_inst /$bn " ]]; then
228
228
cp -rf " $md_inst /$bn " " .pristine_cfgs/"
229
229
rm -rf " $md_inst /$bn "
@@ -275,6 +275,11 @@ function _init_config_skyscraper() {
275
275
# Create the cache folder and add the sample 'priorities.xml' file to it
276
276
mkUserDir " $scraper_conf_dir /cache"
277
277
cp -f " $md_inst /.pristine_cfgs/priorities.xml.example" " $scraper_conf_dir /cache"
278
+
279
+ # Deploy programmable completion script
280
+ mkUserDir " $home /.bash_completion.d"
281
+ cp -f " $md_inst /.pristine_cfgs/Skyscraper.bash" " $home /.bash_completion.d"
282
+ chown $user :$user " $home /.bash_completion.d/Skyscraper.bash"
278
283
}
279
284
280
285
# Scrape one system, passed as parameter
You can’t perform that action at this time.
0 commit comments