delete extension names of scripts

This commit is contained in:
2025-09-24 18:33:20 +02:00
parent eccc63e44a
commit 5aec24f542
24 changed files with 44 additions and 38 deletions

23
.scripts/issu Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
if [ "$(id -u)" -eq 0 ]; then
exit 0
fi
if [ -n "$SUDO_USER" ]; then
exit 0
fi
if [ "$LOGNAME" != "$USER" ]; then
exit 0
fi
ppid=$(ps -o ppid= -p $$ 2>/dev/null)
if [ -n "$ppid" ]; then
parent_comm=$(ps -o comm= -p "$ppid" 2>/dev/null)
if [ "$parent_comm" = "su" ]; then
exit 0
fi
fi
exit 1