We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6293cea + daea2f1 commit 0108dedCopy full SHA for 0108ded
post_install.sh
@@ -12,8 +12,19 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="0525", MODE:="0666"
12
EOF
13
}
14
15
-if [ "$EUID" -ne 0 ]
16
- then echo "Please run as root"
+if [ "$EUID" -ne 0 ]; then
+ if [ -e "${PWD}/post_install.sh" ]; then
17
+ echo
18
+ echo "You might need to configure permissions for uploading."
19
+ echo "To do so, run the following command from the terminal:"
20
+ echo "sudo \"${PWD}/post_install.sh\""
21
22
+ else
23
+ # Script was executed from another path. It is assumed this will only occur when user is executing script directly.
24
+ # So it is not necessary to provide the command line.
25
+ echo "Please run as root"
26
+ fi
27
+
28
exit
29
fi
30
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments