Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

Commit bab6c14

Browse files
author
NerdOfCode
committed
Security Patch
1 parent 23c8292 commit bab6c14

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Bin/nano

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

33
#Call the global_bash_var file
4-
source "/etc/Restricted-Shell/Src/global_bash_var"
4+
location="/etc/Restricted-Shell/"
5+
source "${location}Src/global_bash_var"
56

67
#Check if system has dependencies
78

run.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,16 @@ then
146146

147147
clear
148148

149-
read -p "Enter Default Directory for Shell(Default: '/etc/Restricted-Shell/): " location
149+
read -p "Enter Default Directory for Shell(Default: '${DEFAULT_LOCATION}): " location
150150

151151
if [[ -z $location ]]
152152
then
153-
location="/etc/Restricted-Shell/"
153+
location="${DEFAULT_LOCATION}"
154154
else
155155
sed -i "s|${DEFAULT_LOCATION}|${location}|g" run.sh
156156
sed -i "s|${DEFAULT_LOCATION}|${location}|g" Src/globals.h
157157
sed -i "s|${DEFAULT_LOCATION}|${location}|g" Src/global_bash_var
158+
sed -i "s|${DEFAULT_LOCATION}|${location}|g" Bin/nano
158159
fi
159160

160161
#Prompt user to allow what commands

0 commit comments

Comments
 (0)