Compare commits
2 commits
fb1ae514b3
...
c9a945559d
Author | SHA1 | Date | |
---|---|---|---|
c9a945559d | |||
a685244436 |
1 changed files with 7 additions and 2 deletions
|
@ -7,22 +7,27 @@ global_ignore=(
|
|||
'README\.md'
|
||||
'\.editorconfig'
|
||||
'\.stow-no-folding'
|
||||
'\.stow-rename'
|
||||
'\.mypy_cache'
|
||||
'\..*\.swp'
|
||||
)
|
||||
|
||||
supported_stow_versions=(
|
||||
2.3.2-fixbug56727
|
||||
)
|
||||
|
||||
bootstrap() {
|
||||
echo 'Bootstrapping your dotfiles...' >&2
|
||||
mkdir -p $DOTFILES
|
||||
touch $DOTFILES/.stow
|
||||
if (( $+commands[stow] )); then
|
||||
local stow_version=${"$(stow -V)"#stow*version }
|
||||
if [[ $stow_version != 2.3.2-fixbug56727 ]]; then
|
||||
if (( 0 == $supported_stow_versions[(Ie)$stow_version] )); then
|
||||
echo "GNU Stow is installed, but version $stow_version is bugged." >&2
|
||||
echo 'See https://github.com/aspiers/stow/issues/33 for info.' >&2
|
||||
echo 'Will fetch patched version of Stow...' >&2
|
||||
install-custom-gnu-stow || return $?
|
||||
else
|
||||
echo "GNU Stow version $stow_version is installed and is compatible with dots." >&2
|
||||
fi
|
||||
else
|
||||
echo 'GNU Stow is not installed, fetching it...' >&2
|
||||
|
|
Loading…
Reference in a new issue