Forum Discussion

RM2JulianR's avatar
RM2JulianR
Copper Contributor
Apr 19, 2023
Solved

Scripts don't working in mac?

Hello, I´m new to deploying scripts on intune, I'm testing a sh script that downloads a zip file, and then unzips in another location the problem is that on Intune it says that it is deployed correctly but it doesn't do anything.

 

 

#!/bin/sh
curl -L -o "$HOME/Desktop/Gradle.zip" "https://services.gradle.org/distributions/gradle-8.1-all.zip" --insecure
mkdir -p /opt/gradle
unzip -q -d /opt/gradle "$HOME/Desktop/Gradle.zip"
export PATH="/opt/gradle/gradle-8.1/bin:$PATH

 

 This is the code, if I run it manually it works.

  • Hi
    I don't have a Mac at hand to test but I think that by relying on the Octory installation script (lines 147 to 180) and by adding some logs you will manage to identify the problem.

    https://github.com/microsoft/shell-intune-samples/blob/master/macOS/Config/Octory/installOctory.sh

2 Replies

  • DxR's avatar
    DxR
    Iron Contributor
    Hi
    I don't have a Mac at hand to test but I think that by relying on the Octory installation script (lines 147 to 180) and by adding some logs you will manage to identify the problem.

    https://github.com/microsoft/shell-intune-samples/blob/master/macOS/Config/Octory/installOctory.sh

Resources