Skip to content

Commit 94d9721

Browse files
committed
fix: remove duplicated set -e
This is assumed from rsetup init code. Signed-off-by: ZHANG Yuntian <[email protected]>
1 parent 2377b9a commit 94d9721

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/usr/lib/rsetup/cli/steam.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# shellcheck shell=bash
2-
set -e
32
get_user_home() {
43
getent passwd "$(logname)" | cut -d: -f6
54
}
@@ -118,7 +117,7 @@ install_steam() {
118117

119118
rm -rf "$steam_dir"
120119
mkdir -p "$steam_dir"
121-
pushd "$temp_dir"
120+
pushd "$temp_dir" || return 1
122121

123122
# download latest deb and unpack
124123
wget https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
@@ -127,7 +126,7 @@ install_steam() {
127126

128127
# move deb contents to steam folder
129128
mv ./usr/* "$steam_dir"
130-
popd
129+
popd || return 1
131130
rm -rf "$temp_dir"
132131

133132
# create run script

0 commit comments

Comments
 (0)