Skip to content
Snippets Groups Projects
Commit 0584e51c authored by Keegan Mullaney's avatar Keegan Mullaney
Browse files

add comments for debugging

parent 0be61473
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -85,14 +85,21 @@ qc_set_subl_config() {
conf_parent_dir=$(lkm_trim_shortest_right_pattern "$conf_dir" "/")
repo_dir=$(lkm_trim_shortest_right_pattern "$REPO3" "/")
 
echo "conf_dir: $conf_dir"
echo "conf_parent_dir: $conf_parent_dir"
echo "repo_dir: $repo_dir"
# make sure directory exists for symlink
echo "attempting to make $user_dir"
mkdir -p "$user_dir"
 
# check if $conf_dir exists, else create parent and move $user_dir to $conf_parent_dir
[ -d "$conf_dir" ] || { mkdir -p "$conf_parent_dir" ; mv "$user_dir" "$conf_parent_dir" ; }
echo "checking if $conf_dir exists"
[ -d "$conf_dir" ] || { echo "making $conf_parent_dir" ; mkdir -p "$conf_parent_dir" ; echo "moving $user_dir to $conf_parent_dir" ; mv "$user_dir" "$conf_parent_dir" ; }
 
# remove default user directory if not already a symlink
[ -L "$user_dir" ] || { rm -r "$user_dir" ; ln -s "$conf_dir" "$user_dir" ; }
echo "checking for symlink at $user_dir"
[ -L "$user_dir" ] || { echo "attempting to remove $user_dir" ; rm -rf "$user_dir" ; echo "creating symlink from $user_dir to $conf_dir" ; ln -s "$conf_dir" "$user_dir" ; }
 
# update or clone repository if symbolic link exists for User directory
if [ -d "$repo_dir" ]; then
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment