From 83edd57eca495ffac8b58c0924e17c00ea0d041b Mon Sep 17 00:00:00 2001 From: Marko Lisica <83164494+marko-lisica@users.noreply.github.com> Date: Tue, 4 Jun 2024 08:17:00 +0200 Subject: [PATCH] Update scripts docs (#19419) With #17321 we added support for `zsh` interpreter and we want to document this. @spokanemac had a hard time understanding that we don't support `.zsh` extension while dogfooding the feature. I added note to explain that user must create `.sh` file with `/bin/zsh` interpreter specified. --- docs/Using Fleet/Scripts.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Using Fleet/Scripts.md b/docs/Using Fleet/Scripts.md index 64b9957fff..7adb2c057d 100644 --- a/docs/Using Fleet/Scripts.md +++ b/docs/Using Fleet/Scripts.md @@ -2,7 +2,8 @@ In Fleet you can execute a custom script to remediate an issue on your macOS, Windows, and Linux hosts. -Shell scripts are supported on macOS and Linux. All scripts will run in the host's (root) default shell (`/bin/sh`). Other interpreters are not supported yet. +Shell scripts are supported on macOS and Linux. By default, shell scripts will run in the host's (root) shell (`/bin/sh`). We also support `/bin/zsh` interpreter. +Note: To run in `/bin/zsh`, create `.sh` file (only supported extension) and add an interpreter at the first line. PowerShell scripts are supported on Windows. Other types of scripts are not supported yet.