create modules.sh
added modules file for copying to powerclicore correct locations
This commit is contained in:
6
Scripts/modules.sh
Normal file
6
Scripts/modules.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
for file in $( ls /powershell/PowerCLI-Example-Scripts/Modules/ )
|
||||||
|
do
|
||||||
|
mkdir "/root/.local/share/powershell/Modules/${file%.*}/"
|
||||||
|
mv "/powershell/PowerCLI-Example-Scripts/Modules/$file" "/root/.local/share/powershell/Modules/${file%.*}/$file"
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user