Skip to content

Commit e54593e

Browse files
authored
Merge pull request #162 from dirkpetersen/permissions
install error in github actions
2 parents 00a224a + fbe4fcd commit e54593e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

install.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ catch() {
9696

9797
spinner() {
9898
arg="$1"
99-
spin='-\|/'
99+
spin='-\\|/'
100100
i=0
101101

102102
check_condition() {
@@ -395,15 +395,22 @@ install_pwalk() {
395395

396396
# Compile pwalk tool and put exec file in froster's binaries folder
397397
echo " Compiling pwalk"
398-
gcc -pthread ${pwalk_path}/pwalk.c ${pwalk_path}/exclude.c ${pwalk_path}/fileProcess.c -o ${pwalk_path}/pwalk 2>&1 | redirect_output &
398+
gcc -pthread ${pwalk_path}/pwalk.c ${pwalk_path}/exclude.c ${pwalk_path}/fileProcess.c -o ${pwalk_path}/pwalk &
399399
spinner $!
400400

401401
# Get the froster's binaries folder
402402
froster_dir=$(dirname "$(readlink -f $(which froster))")
403403
echo " Moving pwalk to froster's binaries folder"
404404

405405
# Move pwalk to froster's binaries folder
406-
mv ${pwalk_path}/pwalk ${froster_dir}/pwalk 2>&1 | redirect_output
406+
mv ${pwalk_path}/pwalk ${froster_dir}/pwalk
407+
408+
# Verify pwalk was moved successfully
409+
if [ ! -f "${froster_dir}/pwalk" ]; then
410+
echo "Error: Failed to move pwalk to ${froster_dir}/pwalk" >&2
411+
exit 1
412+
fi
413+
407414
echo " Installed pwalk at ${froster_dir}/pwalk"
408415

409416
# Delete downloaded pwalk files

0 commit comments

Comments
 (0)