mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2025-09-20 11:34:58 +02:00
⏳ @eshanized updated the repository 🎉 !!!
This commit is contained in:
@@ -22,3 +22,16 @@ while getopts "${opts}" arg; do
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
shift $(($OPTIND - 1))
|
||||
|
||||
initfile="$(mktemp)"
|
||||
codefile="$initfile"
|
||||
echo "#!/usr/bin/env bash" >"$initfile"
|
||||
if [ "$EXEC_TERMINAL" != "bash" ]; then
|
||||
codefile="$(mktemp)"
|
||||
echo "$EXEC_TERMINAL $codefile" >>"$initfile"
|
||||
fi
|
||||
echo "$1" >>"$codefile"
|
||||
chmod +x "$initfile"
|
||||
cmd="\"$initfile\""
|
||||
|
Reference in New Issue
Block a user