Skip to content

Commit

Permalink
Fix sudo call in installation
Browse files Browse the repository at this point in the history
  • Loading branch information
BCarnaval committed Jun 22, 2024
1 parent 2a70893 commit 46478cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ ORANGE="$(printf '\033[33m')"
PROJ=UniTeX
CURRENT_DIR=$( pwd )
TAG=$(git describe --tags)
# DESTINATION=/usr/local/share
# LINK_DIR=/usr/local/bin/unitex
DESTINATION=${HOME}/.local/share
LINK_DIR=${HOME}/.local/bin/unitex

Expand Down Expand Up @@ -61,7 +59,7 @@ fill_directory () {
chmod +x ${DESTINATION}/${PROJ}/uninstall.sh

# Version control
echo "${TAG}" | cut -d '-' -f 1 | sudo tee ${DESTINATION}/${PROJ}/version.txt &> /dev/null
echo "${TAG}" | cut -d '-' -f 1 | tee ${DESTINATION}/${PROJ}/version.txt &> /dev/null

# Create symlink
echo -e "${GREEN}[@] Updating symlink from ${WHITE}${LINK_DIR}${GREEN}."
Expand Down

0 comments on commit 46478cb

Please sign in to comment.