removed piping

This commit is contained in:
Roy 2024-03-13 11:07:32 -07:00 committed by GitHub
parent a17e72ea0d
commit 85dc0e2cba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,13 +23,10 @@ logged_in_home=$(eval echo "~${logged_in_user}")
# $PWD (working directory) # $PWD (working directory)
download_dir="${logged_in_home}/Downloads/NonSteamLaunchersInstallation" download_dir="${logged_in_home}/Downloads/NonSteamLaunchersInstallation"
# Create a named pipe if it doesn't exist
pipe_path="/tmp/nsl_pipe"
[[ ! -p $pipe_path ]] && mkfifo $pipe_path
# Create a log file in the same directory as the desktop file/.sh file # Create a log file in the same directory as the desktop file/.sh file
# and also send output to the named pipe exec >> "${logged_in_home}/Downloads/NonSteamLaunchers-install.log" 2>&1
exec > >(tee -a "${logged_in_home}/Downloads/NonSteamLaunchers-install.log" >$pipe_path) 2>&1
# Version number (major.minor) # Version number (major.minor)
version=v3.8.1 version=v3.8.1
@ -2807,4 +2804,3 @@ fi
# TODO: might be better to relocate temp files to `/tmp` or even use `mktemp -d` since `rm -rf` is potentially dangerous without the `-i` flag # TODO: might be better to relocate temp files to `/tmp` or even use `mktemp -d` since `rm -rf` is potentially dangerous without the `-i` flag
# Delete NonSteamLaunchersInstallation subfolder in Downloads folder # Delete NonSteamLaunchersInstallation subfolder in Downloads folder
rm -rf "$download_dir" rm -rf "$download_dir"
rm $pipe_path