cmder/vendor/bin/cmder_diag.sh

62 lines
1.5 KiB
Bash
Raw Normal View History

2021-09-18 00:22:25 +08:00
#!/usr/bin/env bash
[[ -f "$TEMP/cmder_diag_sh.log" ]] && rm -f "$TEMP/cmder_diag_sh.log"
(echo ''
echo ------------------------------------
2021-09-18 00:22:25 +08:00
echo env
echo ------------------------------------
2021-09-18 00:22:25 +08:00
env 2>&1
echo ''
echo ------------------------------------
2021-09-18 00:22:25 +08:00
echo which git
echo ------------------------------------
2021-09-18 00:22:25 +08:00
which git 2>&1
echo ''
echo ------------------------------------
2021-09-18 00:22:25 +08:00
echo which clink
echo ------------------------------------
2021-09-18 00:22:25 +08:00
which clink 2>&1
echo ''
echo ------------------------------------
2021-09-18 00:22:25 +08:00
echo systeminfo
echo ------------------------------------
systeminfo 2>&1
echo ------------------------------------
2021-09-18 00:22:25 +08:00
echo ls -la "$CMDER_ROOT"
echo ------------------------------------
ls -la "$CMDER_ROOT" 2>&1
echo ''
echo ------------------------------------
2021-09-18 00:22:25 +08:00
echo ls -la "$CMDER_ROOT/vendor"
echo ------------------------------------
2021-09-18 00:22:25 +08:00
ls -la "$CMDER_ROOT/vendor" 2>&1
echo ''
echo ------------------------------------
2021-09-18 00:22:25 +08:00
echo ls -la /s "$CMDER_ROOT/bin"
echo ------------------------------------
2021-09-18 00:22:25 +08:00
ls -laR /s "$CMDER_ROOT/bin" 2>&1
2020-09-12 18:10:41 +08:00
echo ''
echo ------------------------------------
2021-09-18 00:22:25 +08:00
echo ls -la /s "$CMDER_ROOT/config"
2020-09-12 18:10:41 +08:00
echo ------------------------------------
2021-09-18 00:22:25 +08:00
ls -laR /s "$CMDER_ROOT/config" 2>&1
echo ''
echo ------------------------------------
echo Make sure you sanitize this output of private data prior to posting it online for review by the CMDER Team!
echo ------------------------------------
2021-09-18 00:22:25 +08:00
) > "$TEMP/cmder_diag_sh.log"
cat "$TEMP/cmder_diag_sh.log"
echo ''
echo Above output was saved in "$TEMP/cmder_diag_sh.log"