Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
n1amr committed Sep 1, 2023
1 parent d0acaf0 commit 726182b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions bin/git-create-gitlab
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repo_name="$1"
branch="${2:-master}"

# TOKEN_FILE="$DOTFILES_HOME/custom/keys/gitlab_token"
#
#
# if [[ -x "$TOKEN_FILE" ]]; then
# source "$TOKEN_FILE"
# else
Expand All @@ -18,7 +18,7 @@ branch="${2:-master}"
# echo "export GITLAB_PRIVATE_TOKEN = ${GITLAB_PRIVATE_TOKEN}" > "${TOKEN_FILE}"
# chmod +x "$TOKEN_FILE"
# fi
#
#
# private_token="$GITLAB_PRIVATE_TOKEN"
# url="https://gitlab.com/api/v3/projects?private_token=$private_token"

Expand All @@ -41,7 +41,7 @@ repo_name="$(echo -n "$repo_name" | tr -c '[:alnum:] -_' '_')"

# temp_file="$(mktemp .gitlab-create-response-XXXXX.tmp.html)"
# trap 'rm "$temp_file"' EXIT
#
#
# echo wget --header='Content-Type:application/json' "${url}" --post-data="{ \"name\": \"${repo_name}\" }" -O "$temp_file"
# wget --header='Content-Type:application/json' "${url}" --post-data="{ \"name\": \"${repo_name}\" }" -O "$temp_file"
# r=$?
Expand Down
2 changes: 1 addition & 1 deletion bin/pcp
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ print_errors() {

cd "$source_dir"
find -L -not -type d -print0 |
xargs -0 -P128 -n8 bash -c "$command" 'arg_0' "$target_dir" 2> >(tee -a "$errors_log") || print_errors
xargs -0 -P128 -n8 bash -c "$command" 'arg_0' "$target_dir" 2> >(tee -a "$errors_log") || print_errors
2 changes: 1 addition & 1 deletion bin/pcp-check
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ print_errors() {

cd "$source_dir"
find -L -not -type d -print0 |
xargs -0 -P128 -n8 bash -c "$command" 'arg_0' "$target_dir" 2> >(tee -a "$errors_log") || print_errors
xargs -0 -P128 -n8 bash -c "$command" 'arg_0' "$target_dir" 2> >(tee -a "$errors_log") || print_errors
2 changes: 1 addition & 1 deletion bin/pingmon
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ process_line() {
while true; do
ping -c 5 "$host" 2>&1
sleep 1
done | process_line
done | process_line
4 changes: 2 additions & 2 deletions bin/playerctl
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ cmus_perform_action() {
stop) cmus_remote_w "$server" -s ;;
next) cmus_remote_w "$server" -n ;;
previous) cmus_remote_w "$server" -r ;;
status)
status)
cmus_status "$server" || exit 1
;;
play-pause)
play-pause)
if [[ "$(cmus_status "$server")" != 'Playing' ]]; then
cmus_remote_w "$server" -p
else
Expand Down
2 changes: 1 addition & 1 deletion bin/pmv
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ print_errors() {

cd "$source_dir"
find -L -not -type d -print0 |
xargs -0 -P128 -n8 bash -c "$command" 'arg_0' "$target_dir" 2> >(tee -a "$errors_log") || print_errors
xargs -0 -P128 -n8 bash -c "$command" 'arg_0' "$target_dir" 2> >(tee -a "$errors_log") || print_errors

0 comments on commit 726182b

Please sign in to comment.