diff --git a/bin/scripts/unix/format.sh b/bin/scripts/unix/format.sh new file mode 100644 index 000000000000..40086f8318a8 --- /dev/null +++ b/bin/scripts/unix/format.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# ------------------------------------------------------ +# @@product_full@@ formatting script. +# ------------------------------------------------------ + +IDE_BIN_HOME="${0%/*}" +exec "$IDE_BIN_HOME/@@script_name@@" format "$@" diff --git a/bin/scripts/win/format.bat b/bin/scripts/win/format.bat index 2ddcbd269531..1baf08cd9b78 100644 --- a/bin/scripts/win/format.bat +++ b/bin/scripts/win/format.bat @@ -4,7 +4,5 @@ :: @@product_full@@ formatting script. ::---------------------------------------------------------------------- -SET DEFAULT_PROJECT_PATH=%CD% - SET IDE_BIN_DIR=%~dp0 CALL "%IDE_BIN_DIR%\@@script_name@@" format %*