diff --git a/MP1/scripts/install_cmd.sh b/MP1/scripts/install_cmd.sh index 991935a..2ed7e4f 100755 --- a/MP1/scripts/install_cmd.sh +++ b/MP1/scripts/install_cmd.sh @@ -1,7 +1,6 @@ -rm -rf ~/bin +rm -rf "$HOME/bin/grepp" chmod +x ../client.py -mkdir -p ~/bin -cp ../client.py ~/bin/grepp -chmod +x ~/bin/grepp -echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc +mkdir -p "$HOME/bin" +install -m 755 ../client.py "$HOME/bin/grepp" +echo 'export PATH="$HOME/bin:$PATH"' >> "$HOME/.bashrc" source ~/.bashrc \ No newline at end of file