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

Commit

Permalink
Fix typo in src path
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed Sep 2, 2017
1 parent c126e96 commit 6571a27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ _ANT_DESKTOP="${1}"
_ANT_USERNAME="${2}"
_ANT_OVERWRITE="${3}"

if [[ -z "${_ANT_USERNAME}" ]]; then
if [[ -z "${_ANT_DESKTOP}" ]] || [[ -z "${_ANT_USERNAME}" ]]; then
echo "Usage: ./install.sh desktop username [no-overwrite]"
exit 0
fi

# All necessary files are here
_ANT_SRC_DIR='/usr/share/antergos/desktop/${_ANT_DESKTOP}'
_ANT_SRC_DIR="/usr/share/antergos/desktop/${_ANT_DESKTOP}"

# User's home destination folder (won't be used if no-overwrite is used)
_ANT_DST_DIR="/home/${_ANT_USERNAME}"
Expand All @@ -41,7 +41,7 @@ _ANT_DST_DIR="/home/${_ANT_USERNAME}"
cp -R "${_ANT_SRC_DIR}/skel" /etc/skel

if [[ "${_ANT_OVERWRITE}" != "no-overwrite" ]]; then
echo ">>> Antergos ${_ANT_DESKTOP} configuration will be applied to new users, root, and the following user: ${_ANT_USERNAME}."
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
Expand All @@ -53,7 +53,7 @@ if [[ "${_ANT_OVERWRITE}" != "no-overwrite" ]]; then
chown -R "${_ANT_USERNAME}:users" "${_ANT_DST_DIR}"
fi
else
echo ">>> Antergos ${_ANT_DESKTOP} configuration will be applied to new users only."
echo ">>> Antergos ${_ANT_DESKTOP} configuration has been applied to new users only."
fi

# Copy global files (/etc)
Expand Down

0 comments on commit 6571a27

Please sign in to comment.