Skip to content

Commit 3c94eb7

Browse files
committed
Fix installation when Plank themes folder has not been created
1 parent dc7e4a4 commit 3c94eb7

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

install.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
#!/usr/bin/env bash
22

3-
read -p "Do you want to install Frost [Y/n]? " yn
3+
read -p "Do you want to install Frost [Y/n]? " response
44

5-
case "$yn" in
6-
y|Y|yes|YES|"")
5+
case "$response" in
6+
[yY][eE][sS]|[yY]|"")
77
echo "Copying plank theme..."
8+
mkdir -p $HOME/.local/share/plank/themes
89
cp -Ri Frost $HOME/.local/share/plank/themes
9-
1010
echo "Done"
11-
11+
exit 0
1212
;;
13-
1413
*)
1514
echo "Invalid input"
1615
exit 1
17-
16+
;;
1817
esac
19-
20-
exit 0

0 commit comments

Comments
 (0)