Compare commits
No commits in common. "1d3d68926baa2b4a5793d6d65582a3efc8040627" and "21643ed7f86b2a448c09c214b7470f48f63674a3" have entirely different histories.
1d3d68926b
...
21643ed7f8
1 changed files with 5 additions and 14 deletions
13
bin/qemush
13
bin/qemush
|
@ -1,24 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
exec_as() {
|
||||
local user
|
||||
user="$1"
|
||||
shift
|
||||
|
||||
if [ "$(whoami)" != "$user" ]; then
|
||||
exec sudo -u "$user" "$0" "$@"
|
||||
if [ "$(whoami)" != root ]; then
|
||||
exec sudo -u qemu "$0" "$@"
|
||||
else
|
||||
cd || exit
|
||||
fi
|
||||
}
|
||||
|
||||
exec_as qemu "$@"
|
||||
|
||||
bin=bin
|
||||
images=images
|
||||
|
||||
PATH="./${bin}:${PATH}"
|
||||
EDITOR="${EDITOR:-nvim}"
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
shopt -s expand_aliases
|
||||
|
|
Loading…
Reference in a new issue