Skip to content

Commit 1fe8b60

Browse files
committed
fix require_elevation
1 parent 648e107 commit 1fe8b60

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

dibs.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
DIBS=$(dirname $(readlink -e "$0"))
4+
ARGS=("$@")
45

56
BUILT=1
67
CLEANUP=0
@@ -47,11 +48,7 @@ require_elevation() {
4748
echo "Superuser privlidges are required for this operation."
4849
exit 1
4950
fi
50-
51-
for e in "${BASH_ARGV[@]}"; do
52-
args=( "$e" "${args[@]}" )
53-
done
54-
exec sudo "$0" "${args[@]}"
51+
exec sudo "$0" "${ARGS[@]}"
5552
}
5653

5754
require_rootfs() {

0 commit comments

Comments
 (0)