File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,18 @@ if [[ -d ~/.local/weapon ]]; then
55 exit 0
66fi
77
8- echo " Installing Weapon..."
9- mkdir -p ~ /.local/weapon
10-
118export LOCATION=~ /.local/weapon
12- cp -f ./createhackenv.sh $LOCATION
13- cp -f ./zsh_history $LOCATION
9+ echo " Installing Weapon..."
10+ mkdir -p $LOCATION && echo " Weapon directory created at $LOCATION ."
11+ cp -f ./createhackenv.sh $LOCATION && echo " createhackenv.sh copied to $LOCATION ."
12+ cp -f ./zsh_history $LOCATION && echo " zsh_history copied to $LOCATION ."
1413
15- echo " source $LOCATION /createhackenv.sh" >> ~ /.zshrc
14+ grep -zq " source $LOCATION /createhackenv.sh" ~ /.zshrc
15+ if [[ $? -eq 0 ]]; then
16+ echo " createhackenv.sh already sourced in ~/.zshrc. sktpping..."
17+ else
18+ echo " Sourcing createhackenv.sh in ~/.zshrc..."
19+ echo " source $LOCATION /createhackenv.sh" >> ~ /.zshrc
20+ fi
1621
1722echo " Weaponized VSCode installation completed."
You can’t perform that action at this time.
0 commit comments