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 ''
|
2018-11-02 21:00:41 +08:00
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
echo env
|
2018-11-02 21:00:41 +08:00
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
env 2>&1
|
2018-11-02 21:00:41 +08:00
|
|
|
|
|
|
|
echo ''
|
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
echo which git
|
2018-11-02 21:00:41 +08:00
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
which git 2>&1
|
2018-11-02 21:00:41 +08:00
|
|
|
|
|
|
|
echo ''
|
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
echo which clink
|
2018-11-02 21:00:41 +08:00
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
which clink 2>&1
|
2018-11-02 21:00:41 +08:00
|
|
|
|
|
|
|
echo ''
|
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
echo systeminfo
|
|
|
|
echo ------------------------------------
|
|
|
|
systeminfo 2>&1
|
|
|
|
|
2018-11-02 21:00:41 +08:00
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
echo ls -la "$CMDER_ROOT"
|
|
|
|
echo ------------------------------------
|
|
|
|
ls -la "$CMDER_ROOT" 2>&1
|
2018-11-02 21:00:41 +08:00
|
|
|
|
|
|
|
echo ''
|
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
echo ls -la "$CMDER_ROOT/vendor"
|
2018-11-02 21:00:41 +08:00
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
ls -la "$CMDER_ROOT/vendor" 2>&1
|
2018-11-02 21:00:41 +08:00
|
|
|
|
|
|
|
echo ''
|
|
|
|
echo ------------------------------------
|
2021-09-18 00:22:25 +08:00
|
|
|
echo ls -la /s "$CMDER_ROOT/bin"
|
2018-11-02 21:00:41 +08:00
|
|
|
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
|
2018-11-02 21:00:41 +08:00
|
|
|
|
|
|
|
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"
|