Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:Antergos/antergos-desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed Sep 10, 2017
2 parents 5ea98c3 + 3ecffec commit ad2d333
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ _ANT_SRC_DIR="/usr/share/antergos/desktop/${_ANT_DESKTOP}"
_ANT_DST_DIR="/home/${_ANT_USERNAME}"

# Copy config files to skel folder
cp -R "${_ANT_SRC_DIR}/skel" /etc/skel
cp -R "${_ANT_SRC_DIR}/skel/." /etc/skel

if [[ "${_ANT_OVERWRITE}" != "no-overwrite" ]]; then
echo ">>> Antergos ${_ANT_DESKTOP} configuration has been applied to new users, root, and the following user: ${_ANT_USERNAME}."

# Copy config files to root
cp -R "${_ANT_SRC_DIR}/skel" /root
cp -R "${_ANT_SRC_DIR}/skel/." /root

if [[ -n "${_ANT_DST_DIR}" ]] && [[ -d "${_ANT_DST_DIR}" ]]; then
# Copy config files to current user
cp -R "${_ANT_SRC_DIR}/skel" "${_ANT_DST_DIR}"
cp -R "${_ANT_SRC_DIR}/skel/." "${_ANT_DST_DIR}"
# Fix permissions
chown -R "${_ANT_USERNAME}:users" "${_ANT_DST_DIR}"
fi
Expand Down

0 comments on commit ad2d333

Please sign in to comment.