From 5aee669b4cbcb6feb058d2ca1b88fa92661e6d38 Mon Sep 17 00:00:00 2001 From: Alan Renouf Date: Tue, 18 Apr 2017 21:03:53 -0700 Subject: [PATCH] create modules.sh added modules file for copying to powerclicore correct locations --- Scripts/modules.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Scripts/modules.sh diff --git a/Scripts/modules.sh b/Scripts/modules.sh new file mode 100644 index 0000000..ea84779 --- /dev/null +++ b/Scripts/modules.sh @@ -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