mi cajones es rotas
This commit is contained in:
parent
78cfd65be4
commit
3e7f3c337f
1 changed files with 9 additions and 12 deletions
21
setup
21
setup
|
@ -15,15 +15,11 @@ Enter number[1-3]: "
|
||||||
read -r input
|
read -r input
|
||||||
|
|
||||||
if ! [ "$input" -eq "$input" ] 2> /dev/null; then
|
if ! [ "$input" -eq "$input" ] 2> /dev/null; then
|
||||||
|
|
||||||
echo "Error: Not a number"
|
echo "Error: Not a number"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
elif [ "$input" -lt 1 ] || [ "$input" -gt 3 ]; then
|
elif [ "$input" -lt 1 ] || [ "$input" -gt 3 ]; then
|
||||||
|
|
||||||
echo "Error: Input out of range"
|
echo "Error: Input out of range"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Trigger sudo prompt before less can block password input
|
# Trigger sudo prompt before less can block password input
|
||||||
|
@ -108,15 +104,16 @@ cd "$HOME"/.doors &&
|
||||||
# Copy default wallpaper
|
# Copy default wallpaper
|
||||||
if ! test -d "$HOME"/Pictures; then
|
if ! test -d "$HOME"/Pictures; then
|
||||||
mkdir "$HOME"/Pictures
|
mkdir "$HOME"/Pictures
|
||||||
if ! test -d "$HOME"/Pictures/Wallpapers; then
|
fi
|
||||||
mkdir "$HOME"/Pictures/Wallpapers
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! test -f "$HOME"/Pictures/Wallpapers/door2.jpg; then
|
if ! test -d "$HOME"/Pictures/Wallpapers; then
|
||||||
printf "\nDownloading default wallpaper..."
|
mkdir "$HOME"/Pictures/Wallpapers
|
||||||
curl -so "$HOME"/Pictures/Wallpapers/door2.jpg https://old.doordesk.net/door2.jpg
|
fi
|
||||||
wal -esqni "$HOME"/Pictues/Wallpapers
|
|
||||||
fi
|
if ! test -f "$HOME"/Pictures/Wallpapers/door2.jpg; then
|
||||||
|
printf "Downloading default wallpaper...\n"
|
||||||
|
curl -o "$HOME"/Pictures/Wallpapers/door2.jpg https://old.doordesk.net/door2.jpg &&
|
||||||
|
wal -ensqi "$HOME"/Pictures/Wallpapers
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Wrap up
|
# Wrap up
|
||||||
|
|
Loading…
Add table
Reference in a new issue