Skip to content

Commit 5dcb75a

Browse files
authored
Fix tar command (#3925)
1 parent 3c909ca commit 5dcb75a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ct/peanut.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function update_script() {
3232
msg_info "Updating $APP to ${RELEASE}"
3333
systemctl stop peanut
3434
curl -fsSL "https://api.github.com/repos/Brandawg93/PeaNUT/tarball/${RELEASE}" -o "peanut.tar.gz"
35-
tar -xzf peanut.tar.gz -C /opt/peanut --strip-components
35+
tar -xzf peanut.tar.gz -C /opt/peanut --strip-components=1
3636
rm peanut.tar.gz
3737
cd /opt/peanut
3838
$STD pnpm i

install/peanut-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ msg_info "Installing Peanut"
3434
RELEASE=$(curl -fsSL https://api.github.com/repos/Brandawg93/PeaNUT/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
3535
curl -fsSL "https://api.github.com/repos/Brandawg93/PeaNUT/tarball/${RELEASE}" -o "peanut.tar.gz"
3636
mkdir -p /opt/peanut
37-
tar -xzf peanut.tar.gz -C /opt/peanut --strip-components 1
37+
tar -xzf peanut.tar.gz -C /opt/peanut --strip-components=1
3838
rm peanut.tar.gz
3939
cd /opt/peanut
4040
$STD npm install -g pnpm

0 commit comments

Comments
 (0)