#!/bin/bash # SHOW: EDIT PLAYLIST # Opens show playlist for editing in nano # Includes and Declarations (global variables, formatting, and functions) source "${APPLICATION_ROOT}/scripts/system/system-functions" source "${APPLICATION_ROOT}/scripts/system/system-declarations" # Check file exists, then reset permissions to ensure editing if [[ -z $PLAYLIST_PATH ]]; then sudo chmod 755 $PLAYLIST_PATH ; sudo chown $PLAYLIST_PATH ; fi # Edit playlist sudo nano $PLAYLIST_PATH; # Confirm after editing confirmation_message "[E] Main Stream Playlist Editing Completed" echo "";