Skip to content

Commit 5aee669

Browse files
authored
create modules.sh
added modules file for copying to powerclicore correct locations
1 parent cf6d2a4 commit 5aee669

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Scripts/modules.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
for file in $( ls /powershell/PowerCLI-Example-Scripts/Modules/ )
3+
do
4+
mkdir "/root/.local/share/powershell/Modules/${file%.*}/"
5+
mv "/powershell/PowerCLI-Example-Scripts/Modules/$file" "/root/.local/share/powershell/Modules/${file%.*}/$file"
6+
done

0 commit comments

Comments
 (0)