Update 1 file: functions.zsh
This commit is contained in:
@@ -22,8 +22,8 @@ install-omp(){
|
||||
whence omp >/dev/null && unset -f install-omp
|
||||
|
||||
dotstate-update() {
|
||||
local REPO_URL="https://go.jeremy-web.space/zshrc-git"
|
||||
local TARGET_DIR="$HOME/.config/dotstate/storage"
|
||||
local REPO_URL="$(git -C "$TARGET_DIR" remote get-url origin)"
|
||||
|
||||
[[ "$(id -u)" -ne "$(stat -c '%u' "$TARGET_DIR" 2>/dev/null)" ]] && return 0
|
||||
[[ ! -d "$TARGET_DIR/.git" ]] && return 0
|
||||
|
||||
Reference in New Issue
Block a user