mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
Windows path check
This commit is contained in:
parent
7357d17c8c
commit
3f7e9c8f82
1 changed files with 4 additions and 3 deletions
7
.vscode/setup.sh
vendored
7
.vscode/setup.sh
vendored
|
@ -83,7 +83,8 @@ function setup_jlink_ps {
|
||||||
if [ -z "$JLinkServerPath" ]; then
|
if [ -z "$JLinkServerPath" ]; then
|
||||||
export JLinkServerPath="c:/Program Files (x86)/SEGGER/JLink/JLinkGDBServerCL.exe"
|
export JLinkServerPath="c:/Program Files (x86)/SEGGER/JLink/JLinkGDBServerCL.exe"
|
||||||
fi
|
fi
|
||||||
if [ ! -x $(cygpath \"$JLinkServerPath\") ]; then
|
jlinkpath=$(cygpath "$JLinkServerPath")
|
||||||
|
if [ ! -x "$jlinkpath" ]; then
|
||||||
echo >&2 "[!!] JLinkGDBServerCL.exe not found, please set JLinkServerPath manually"
|
echo >&2 "[!!] JLinkGDBServerCL.exe not found, please set JLinkServerPath manually"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -107,10 +108,10 @@ function setup_linux {
|
||||||
|
|
||||||
function setup_ps {
|
function setup_ps {
|
||||||
setup_serial_port
|
setup_serial_port
|
||||||
setup_gdb_ps
|
|
||||||
setup_jlink_ps
|
setup_jlink_ps
|
||||||
|
export DebuggerPath="Using ProxSpace gbd"
|
||||||
print_config
|
print_config
|
||||||
envsubst '${SerialPort} ${DebuggerPath} ${JLinkServerPath} ${DeviceMem}' <"$VSCODEPATH/templates/launch_ps.json" > "$VSCODEPATH/launch.json"
|
envsubst '${SerialPort} ${JLinkServerPath} ${DeviceMem}' <"$VSCODEPATH/templates/launch_ps.json" > "$VSCODEPATH/launch.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -f "$VSCODEPATH/launch.json" ]; then
|
if [ -f "$VSCODEPATH/launch.json" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue