summarylogtreecommitdiffstats
path: root/linapple.sh
blob: e58aecdcbf9373abc6b15a5cf7d5399a35665f38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash

progName="linapple"
progRealPath="/usr/share/$progName"
progHome="$HOME/.$progName"

cd $progHome

# Symlink stuff
mkdir -p "$progHome" || exit 1
# Delete broken symlinks
find -L "$progHome" -type l -delete
# Update existing symlinks, add new symlinks
cp -urs "$progRealPath/"* "$progHome" 2> /dev/null

if [ ! -f linapple.conf ]; then
  cp linapple.installed.conf linapple.conf
fi

exec $progRealPath/$progName