mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-04 18:56:48 +00:00
declutter home dir
This commit is contained in:
parent
e60ed53a3c
commit
fc38e13e5e
@ -11,6 +11,8 @@ else
|
|||||||
DIR="$SHOESTRAP_BASE"
|
DIR="$SHOESTRAP_BASE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/shoestrap"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Run a given recipe.
|
# Run a given recipe.
|
||||||
#
|
#
|
||||||
@ -408,7 +410,7 @@ is_installed () {
|
|||||||
local args=$*
|
local args=$*
|
||||||
local name=${args//[ \/:@]/-}
|
local name=${args//[ \/:@]/-}
|
||||||
|
|
||||||
if [[ -f ~/.shoestrap/installed/$name ]]; then
|
if [[ -f "$CONFIG_DIR/installed/$name" ]]; then
|
||||||
log "'$name' is already installed."
|
log "'$name' is already installed."
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
@ -424,8 +426,8 @@ set_installed () {
|
|||||||
local args=$*
|
local args=$*
|
||||||
local name=${args//[ \/:@]/-}
|
local name=${args//[ \/:@]/-}
|
||||||
|
|
||||||
mkdir -p "$HOME/.shoestrap/installed"
|
mkdir -p "$CONFIG_DIR/installed"
|
||||||
touch "$HOME/.shoestrap/installed/$name"
|
touch "$CONFIG_DIR/installed/$name"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user