-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
29 lines (23 loc) · 760 Bytes
/
install.sh
File metadata and controls
29 lines (23 loc) · 760 Bytes
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
if which exiftool >/dev/null; then
echo "Dependencies already installed and work correctly."
exit
fi
VERSION=Image-ExifTool-12.19
echo "Downloading dependencies... exiftool"
curl -s https://exiftool.org/$VERSION.tar.gz --output /tmp/$VERSION.tar.gz >/dev/null
echo "Installing dependencies... exiftool"
tar -xzf /tmp/$VERSION.tar.gz -C /tmp >/dev/null
mv /tmp/$VERSION/lib /usr/local/bin
mv /tmp/$VERSION/exiftool /usr/local/bin/exiftool
echo "Cleaning up..."
rm /tmp/$VERSION.tar.gz
rm -rf /tmp/$VERSION
echo "Testing dependencies..."
if which exiftool >/dev/null; then
echo "Dependencies installed correctly."
else
echo "Error installing dependencies. Please install exiftool manually."
exit 1
fi;
echo "Installing gem...vera"
gem install vera