wpietrzakpl / GlpiTools

PowerShell Module to work with Glpi API
15 stars 8 forks source link

Issue with MacOS #34

Open vnges opened 3 months ago

vnges commented 3 months ago

This is similar to issue on linux. The fix was to add: -Or $IsMacOS to line 36 in the Set-GlpiToolsConfig.ps1 file. ` begin {

    if ($IsLinux -Or $IsMacOS) {
        $ConfigFile = "Configuration.json"
        $ConfigPath = "$env:HOME/.config/GlpiToolsConfig\"
        $Config = Join-Path -Path $ConfigPath -ChildPath $ConfigFile
    } else {`

otherwise, it errors out with "read-only file system"

https://github.com/wpietrzakpl/GlpiTools/blob/aea0468f6bf6bb5571969cbfa89373ae6834d871/Public/APICore/Configuration/Set-GlpiToolsConfig.ps1#L36