Skip to content

Commit

Permalink
fix buildManpage with sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
maltfield committed Dec 13, 2022
1 parent a5481f8 commit b7c09ec
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions docs/buildManpage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ set -x
# SETTINGS #
################################################################################

# n/a
SUDO=$(which sudo)

pwd
env
ls -lah
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
DATE=$(date "+%b %Y" --date="@${SOURCE_DATE_EPOCH}")
HEADER="Laptop Kill Cord"

################################################################################
# MAIN BODY #
Expand All @@ -35,24 +42,10 @@ fi
# INSTALL DEPENDS #
###################

apt-get update
apt-get -y install pandoc

#####################
# DECLARE VARIABLES #
#####################

PANDOC=`which pandoc`

pwd
env
ls -lah
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
DATE=$(date "+%b %Y" --date="@${SOURCE_DATE_EPOCH}")
HEADER="Laptop Kill Cord"
${SUDO} apt-get update
${SUDO} apt-get -y install pandoc

# make a new temp dir which will be our GitHub Pages docroot
docroot=`mktemp -d`
PANDOC=$(which pandoc)

#################
# BUILD MANPAGE #
Expand Down

0 comments on commit b7c09ec

Please sign in to comment.