zsh: fix updater to use hardcoded path for zsh-functions
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
ZSHRC_FUNCTIONS="$ZSH_CONFIG/zsh-functions.zsh"
|
|
||||||
|
|
||||||
use_dev_branch(){
|
use_dev_branch(){
|
||||||
mkdir -p "$ZSH_CONFIG"
|
mkdir -p "$ZSH_CONFIG"
|
||||||
echo "dev" > "$ZSH_CONFIG/branch"
|
echo "dev" > "$ZSH_CONFIG/branch"
|
||||||
|
|||||||
@@ -151,9 +151,9 @@ if [[ -o interactive && "$ZSHRC_UPDATE_DISABLED" != "true" ]]; then
|
|||||||
# zsh-functions
|
# zsh-functions
|
||||||
ftmp=/tmp/.zsh-functions.$$
|
ftmp=/tmp/.zsh-functions.$$
|
||||||
if curl -fsSL --connect-timeout 3 --max-time 8 "$ZSHRC_GIT/zsh-functions.zsh" -o "$ftmp" 2>/dev/null \
|
if curl -fsSL --connect-timeout 3 --max-time 8 "$ZSHRC_GIT/zsh-functions.zsh" -o "$ftmp" 2>/dev/null \
|
||||||
&& [[ -f "$ftmp" ]] && ! cmp -s "$ftmp" "$ZSHRC_FUNCTIONS" 2>/dev/null; then
|
&& [[ -f "$ftmp" ]] && ! cmp -s "$ftmp" "$ZSH_CONFIG/zsh-functions.zsh" 2>/dev/null; then
|
||||||
echo "Updating zsh-functions..."
|
echo "Updating zsh-functions..."
|
||||||
mv "$ftmp" "$ZSHRC_FUNCTIONS"
|
mv "$ftmp" "$ZSH_CONFIG/zsh-functions.zsh"
|
||||||
else
|
else
|
||||||
rm -f "$ftmp"
|
rm -f "$ftmp"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user