Skip to content

Commit

Permalink
Merge pull request #24 from adamhsparks/master
Browse files Browse the repository at this point in the history
Add ability to detect Darktable on macOS
  • Loading branch information
t3mujin authored Apr 18, 2020
2 parents d2d4608 + ea35b37 commit 59993d5
Showing 1 changed file with 43 additions and 14 deletions.
57 changes: 43 additions & 14 deletions remove_t3mujinpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,53 @@ echo -e "Presets Uninstall script${NC}"
echo "----------------------------------------------------------------------"


# Validate Darktable installation
# Linux validate Darktable installation and SQLite installation

if [ ! -x "`which "darktable"`" ]
then
echo ""
echo -e "${YELLOW}Darktable is not installed.${NC}"
echo ""
exit 1
if [[ "$OSTYPE" == "linux-gnu" ]]; then
# Validate Darktable installation

if [ ! -x "`which "darktable"`" ]
then
echo ""
echo -e "${YELLOW}Darktable is not installed.${NC}"
echo ""
exit 1
fi

# Validate SQLite installation

if [ ! -x "`which "sqlite3"`" ]
then
echo ""
echo -e "${YELLOW}SQLite is not installed.${NC}"
echo ""
exit 1
fi
fi

# Validate SQLite installation

if [ ! -x "`which "sqlite3"`" ]
then
echo ""
echo -e "${YELLOW}SQLite is not installed.${NC}"
echo ""
exit 1
# macOS validate Darktable installation and SQLite installation

if [[ "$OSTYPE" == "darwin"* ]]; then
# Validate Darktable installation

if [ ! -x "`mdfind kMDItemFSName = "darktable.app"`" ]
then
echo ""
echo -e "${YELLOW}Darktable is not installed.${NC}"
echo ""
exit 1
fi

# Validate SQLite installation

if [ ! -x "`which "sqlite3"`" ]
then
echo ""
echo -e "${YELLOW}SQLite is not installed.${NC}"
echo ""
exit 1
fi
fi

# Setup database file
Expand Down

0 comments on commit 59993d5

Please sign in to comment.