mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-30 15:08:49 +02:00
Update export-scripts2serenade.ps1
This commit is contained in:
parent
00ba134682
commit
2c9b6fabdd
1
Data/Templates/serenade.txt
Normal file
1
Data/Templates/serenade.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* Exported by export-scripts2serenade.ps1 */
|
@ -21,7 +21,7 @@ try {
|
|||||||
$Scripts = Get-ChildItem "$FilePattern"
|
$Scripts = Get-ChildItem "$FilePattern"
|
||||||
"Found $($Scripts.Count) scripts, starting export to $TargetFile..."
|
"Found $($Scripts.Count) scripts, starting export to $TargetFile..."
|
||||||
|
|
||||||
"/* Exported by export-scripts2serenade.ps1 */" > $TargetFile
|
copy-file "$PSScriptRoot/Data/Templates/serenade.txt" "$TargetFile" -force
|
||||||
foreach ($Script in $Scripts) {
|
foreach ($Script in $Scripts) {
|
||||||
$ScriptName = $Script.basename
|
$ScriptName = $Script.basename
|
||||||
$Keyword = $ScriptName -replace "-"," "
|
$Keyword = $ScriptName -replace "-"," "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user