compile-aseprite-linux icon indicating copy to clipboard operation
compile-aseprite-linux copied to clipboard

Script stops after asking for password

Open akirapink opened this issue 9 months ago • 14 comments

Script stops doing anything after it asks for my password. If I press Ctrl + C to stop it, then sudo asks for my psasword and quits. If I run it as superuser, the same thing happens. Nothing, until I try to quit, at which point it asks for my passwd, and quits.

System detials (neofetch):

akirapink@akira-fedora-aspire5 
------------------------------ 
OS: Fedora Linux 41 (Workstation Edition) x86_64 
Host: Aspire A515-45 V1.52 
Kernel: 6.13.6-200.fc41.x86_64 
Uptime: 11 hours, 41 mins 
Packages: 3308 (rpm), 67 (flatpak) 
Shell: bash 5.2.32 
Resolution: 1920x1080 
DE: Cinnamon 6.4.8 
WM: Mutter (Muffin) 
WM Theme: Mint-Yz-Dark-Pink (Adwaita) 
Theme: WhiteSur-Dark-solid-pink [GTK2/3] 
Icons: Mint-Y-Sand [GTK2/3] 
Terminal: gnome-terminal 
CPU: AMD Ryzen 7 5700U with Radeon Graphics (16) @ 1.800GHz
GPU: AMD ATI 05:00.0 Lucienne 
Memory: 7559MiB / 15321MiB 

akirapink avatar Mar 21 '25 03:03 akirapink

I'm not sure what causes this. I'll try to take a look at it and try to reproduce on my computer later when I have time

mak448a avatar Mar 21 '25 13:03 mak448a

same issue here's a photo.

Image

Xavier-Fox avatar Mar 22 '25 00:03 Xavier-Fox

so it may be an issue with your if statement? I am not overly familiar with whatever this language is (looks like python) but i am getting the message you "echo" in the else statement.

Xavier-Fox avatar Mar 22 '25 01:03 Xavier-Fox

Image

Xavier-Fox avatar Mar 22 '25 01:03 Xavier-Fox

nvm i think the second if statement isn't called.

Image

Xavier-Fox avatar Mar 22 '25 01:03 Xavier-Fox

i have no idea just spit balling but i tried inputting:

sudo apt-get install -y g++ clang libc++-dev libc++abi-dev cmake ninja-build libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev git

and the command worked perfectly so i am manually putting in the rest of them.

Xavier-Fox avatar Mar 22 '25 01:03 Xavier-Fox

so i managed to get it set up without further issues one thing though the terminal is popping up with the application i had turned "Terminal=true" in the desktop folder but then set it to false however its still popping up.

Xavier-Fox avatar Mar 22 '25 01:03 Xavier-Fox

so it may be an issue with your if statement? I am not overly familiar with whatever this language is (looks like python) but i am getting the message you "echo" in the else statement.

This is written in bash (basically just terminal commands bundled into a file)

I'm not sure what causes this. I'll try to take a look at it and try to reproduce on my computer later when I have time

Now is when I have a bit of time 🎉

mak448a avatar Mar 24 '25 01:03 mak448a

so i managed to get it set up without further issues one thing though the terminal is popping up with the application i had turned "Terminal=true" in the desktop folder but then set it to false however its still popping up.

Not sure what this is caused by. Setting Terminal to false should fix it though. Are you using the .desktop file provided with this repository?

mak448a avatar Mar 24 '25 01:03 mak448a

same issue here's a photo.

What distro are you using @Xavier-Fox? Could you provide the output of grep 'NAME=' /etc/os-release | head -n 1 | sed 's/NAME=//' | tr -d '"' and cat /etc/os-release?

mak448a avatar Mar 24 '25 01:03 mak448a

Image

Xavier-Fox avatar Mar 24 '25 02:03 Xavier-Fox

here's the output sorry for the wait!

Xavier-Fox avatar Mar 24 '25 02:03 Xavier-Fox

This is due to an incorrect shebang at the beginning of the script. The script is requesting sh when it is written in more feature-rich bash.

The correct shebang for bash scripts in linux is #!/bin/bash (use #!/usr/bin/env bash for compatibility with bsd)

You can probably replicate this problem on your system running dash ./install.sh, which will try to run the bash code with sh.

source

the-phinet avatar Apr 05 '25 21:04 the-phinet

Hi @Xavier-Fox, could you test the latest version and see if the error is still there?

mak448a avatar Apr 06 '25 23:04 mak448a

@Xavier-Fox since you've recently posted here, has this been fixed?

mak448a avatar Aug 26 '25 19:08 mak448a