create modules.sh

added modules file for copying to powerclicore correct locations
This commit is contained in:
Alan Renouf
2017-04-18 21:03:53 -07:00
committed by GitHub
parent cf6d2a4673
commit 5aee669b4c

6
Scripts/modules.sh Normal file
View 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