Compare commits

...

3 Commits

Author SHA1 Message Date
shvedes
4854dad81e use $0 instead of hardcoded help menu 2025-05-25 13:17:50 +02:00
shvedes
a365571566 do not verbose rm command 2025-05-25 13:15:45 +02:00
shvedes
03aa300dbf use wine instead of wine64 2025-05-25 12:54:21 +02:00

View File

@ -76,7 +76,7 @@ on_interrupt() {
} }
get_help() { get_help() {
echo "Usage: ./install.sh [options...] <path>" echo "Usage: $0 [options...] <path>"
echo " -a Use already existing Photoshop.tar.xz" echo " -a Use already existing Photoshop.tar.xz"
echo " -i Install Photoshop" echo " -i Install Photoshop"
echo " -u <install path> Uninstall Photoshop" echo " -u <install path> Uninstall Photoshop"
@ -185,7 +185,7 @@ is_path_exists() {
echo -e "$WARNING The specified path '${YELLOW}${1}${RESET}' already exists." echo -e "$WARNING The specified path '${YELLOW}${1}${RESET}' already exists."
if ask_user "Do you want to ${RED}delete${RESET} previous installation?"; then if ask_user "Do you want to ${RED}delete${RESET} previous installation?"; then
if rm -rfv "${1:?}" 2>>./install_log.log; then if rm -rfv "${1:?}" &>>./install_log.log; then
echo -e "$LOG Deleted old installation." echo -e "$LOG Deleted old installation."
else else
echo -e "$ERROR Something went wrong." echo -e "$ERROR Something went wrong."
@ -449,7 +449,7 @@ install_launcher() {
echo "PHOTOSHOP=\"\$WINEPREFIX/drive_c/Program Files/Adobe Photoshop 2021/photoshop.exe\"" echo "PHOTOSHOP=\"\$WINEPREFIX/drive_c/Program Files/Adobe Photoshop 2021/photoshop.exe\""
echo "" echo ""
echo "echo \"All logs are saved in \$LOG_FILE\"" echo "echo \"All logs are saved in \$LOG_FILE\""
echo "wine64 \"\$PHOTOSHOP\" \"\$@\" &> \"\$LOG_FILE\" " echo "wine \"\$PHOTOSHOP\" \"\$@\" &> \"\$LOG_FILE\" "
} >"$LAUNCHER" } >"$LAUNCHER"
chmod +x "$LAUNCHER" chmod +x "$LAUNCHER"