mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-03 14:10:36 +08:00
improve test.zsh
This commit is contained in:
parent
667b29644c
commit
6c8868a00c
@ -9,12 +9,12 @@ pwd
|
|||||||
test -f .zshrc2
|
test -f .zshrc2
|
||||||
diff -q ./.ssh/authorized_keys2 ~/.ssh/authorized_keys2
|
diff -q ./.ssh/authorized_keys2 ~/.ssh/authorized_keys2
|
||||||
grep -q ".zshrc2" ~/.zshrc
|
grep -q ".zshrc2" ~/.zshrc
|
||||||
|
l ~
|
||||||
|
|
||||||
# check scripts and functions
|
# check scripts and functions
|
||||||
dfs version
|
dfs version
|
||||||
dfs log 1
|
dfs log 1
|
||||||
l
|
l
|
||||||
l ~
|
|
||||||
dogo
|
dogo
|
||||||
tools/common.sh get_os_type
|
tools/common.sh get_os_type
|
||||||
tools/common.sh get_linux_dist
|
tools/common.sh get_linux_dist
|
||||||
@ -23,6 +23,12 @@ tools/common.sh get_linux_dist
|
|||||||
alias p114 > /dev/null
|
alias p114 > /dev/null
|
||||||
|
|
||||||
# check update
|
# check update
|
||||||
|
DFS_VERSION=`dfs version`
|
||||||
dfs update
|
dfs update
|
||||||
dfs version
|
dfs version
|
||||||
test `git rev-parse HEAD` = `curl -fsSL https://api.beardic.cn/get-var/dfs-commit-id`
|
test `git rev-parse HEAD` = `curl -fsSL https://api.beardic.cn/get-var/dfs-commit-id`
|
||||||
|
|
||||||
|
# clean
|
||||||
|
dfs cd
|
||||||
|
git reset --hard $DFS_VERSION
|
||||||
|
set +x
|
Loading…
x
Reference in New Issue
Block a user