-
Notifications
You must be signed in to change notification settings - Fork 0
/
import.sh
executable file
·36 lines (30 loc) · 1.05 KB
/
import.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# https://stackoverflow.com/a/677212
if ! command -v svn &>/dev/null; then
echo "'snv' could not be found"
exit 1
else
echo "'svn' command found"
fi
# https://stackoverflow.com/a/59839
echo "'sources/' folder found"
if [ ! -d "sources/" ]; then
echo "creating 'sources/' directory"
mkdir "sources/"
fi
echo "'sources/iTerm2-Color-Schemes__trunk__alacritty/' folder found"
if [ ! -d "sources/iTerm2-Color-Schemes__trunk__alacritty/" ]; then
echo "creating 'sources/iTerm2-Color-Schemes__trunk__alacritty/' directory"
mkdir "sources/iTerm2-Color-Schemes__trunk__alacritty/"
fi
echo "'tmp/' folder found"
if [ ! -d "tmp/" ]; then
echo "creating 'tmp/' directory"
mkdir "tmp/"
fi
# https://superuser.com/a/271992
echo "collecting color plattes from 'https://github.com/mbadolato/iTerm2-Color-Schemes/tree/master/alacritty'"
(cd "tmp/" && svn checkout https://github.com/mbadolato/iTerm2-Color-Schemes/trunk/alacritty/)
cp -r tmp/alacritty/* sources/iTerm2-Color-Schemes__trunk__alacritty
echo "deleting tmp directory"
rm -rf tmp