We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8d7fbe commit c95fdddCopy full SHA for c95fddd
1 file changed
fpkg
@@ -11,8 +11,13 @@ error () {
11
12
write_check () {
13
touch $FPKGDIR > /dev/null 2>&1
14
+ ret=$((ret + $?))
15
+ touch $FPKGDIR/pkg.list > /dev/null 2>&1
16
17
+ touch $FPKGDIR/ii > /dev/null 2>&1
18
19
- if [[ $? != 0 ]]; then
20
+ if [[ $ret > 0 ]]; then
21
echo "ERROR: you cannot write to $FPKGDIR! Please run as root"
22
error
23
fi
0 commit comments