File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33$baseUrl = " http://192.168.56.1:8000"
44
5+ # check for file system Read-Write Permission
6+ $output = powershell - Command " & { .\permission-ops.ps1 -value 'view' }"
7+
8+ $output = $output -join " `n "
9+ $output = $output.Trim ()
10+
11+ if ($output -match " Permission is\s*:\s*(RO|RW)" ) {
12+ $permission = $matches [1 ]
13+ if ($permission -eq " RO" ){
14+ Write-Host " File System Permission is : $permission . Make Sure File System Permission is RW." - ForegroundColor Red
15+ exit 1
16+ }
17+ } else {
18+ Write-Host " Permission not found in output."
19+ exit 1
20+ }
21+
522# Default value
623$value = " check"
724
Original file line number Diff line number Diff line change 1010VERSION=$1
1111USER_CHOICE=$2
1212
13- CONFIG_FILE_1=" /usr/share/systemd /usb-gadget.sh"
14- CONFIG_FILE_3=" /usr/share/systemd /"
13+ CONFIG_FILE_1=" /home/analog/Workspace/bin /usb-gadget.sh"
14+ CONFIG_FILE_3=" /home/analog/Workspace/bin /"
1515TEMP_FILE=" /home/analog/Workspace/requirements/usb-gadget.tmp"
1616CONFIG_FILE_2=" /home/analog/Workspace/requirements/usb-gadget.sh"
1717
You can’t perform that action at this time.
0 commit comments